Hello all, I'm taking my first stab at editing my own fork of yt-dev and need some help. I'm trying to add several more species to the list in frontends/enzo/fields.py which act exactly like the fields already there. I've edited the code to add these new fields then ran "python setup.py develop" from the yt-hg directory. When I did this I never saw a message about compiling/building this edited file. When I load a data set it still treats my fields as 'unknown'. 1) Are there any other files I should be editing to add new species fields (akin to HII_Density)? 2) What is the proper way to build yt once I've made these changes? Thanks, Carolyn
Well, I guess I solved my own problem. Instead of using "python setup.py develop" I just used "python setup.py build" and install. -Carolyn On Aug 21, 2012, at 9:32 AM, Carolyn Peruta wrote:
Hello all,
I'm taking my first stab at editing my own fork of yt-dev and need some help.
I'm trying to add several more species to the list in frontends/enzo/fields.py which act exactly like the fields already there. I've edited the code to add these new fields then ran "python setup.py develop" from the yt-hg directory. When I did this I never saw a message about compiling/building this edited file. When I load a data set it still treats my fields as 'unknown'.
1) Are there any other files I should be editing to add new species fields (akin to HII_Density)?
2) What is the proper way to build yt once I've made these changes?
Thanks, Carolyn
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi Carolyn, Glad you got it fixed! In general, fields related to code-specific species are totally fine for inclusion, so if you want to submit a PR I'd be happy to review it. This way you could use a vanilla check out of yt. If you run into any other problems, please feel free to write back to the list. -Matt On Tue, Aug 21, 2012 at 9:32 AM, Carolyn Peruta <perutaca@msu.edu> wrote:
Hello all,
I'm taking my first stab at editing my own fork of yt-dev and need some help.
I'm trying to add several more species to the list in frontends/enzo/fields.py which act exactly like the fields already there. I've edited the code to add these new fields then ran "python setup.py develop" from the yt-hg directory. When I did this I never saw a message about compiling/building this edited file. When I load a data set it still treats my fields as 'unknown'.
1) Are there any other files I should be editing to add new species fields (akin to HII_Density)?
2) What is the proper way to build yt once I've made these changes?
Thanks, Carolyn
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Carolyn Peruta -
Matthew Turk