Hi Reju, If you want to see exactly what the function looks like, you can just examine you source directly for yt. e.g. go into ~/yt/src/yt-hg and then grep for “virial_mass” (bearing in mind there are subdirectories). So: grep virial_mass */*/*/*py will tell you that this particular routine lives in: ~/yt/src/yt-hg/yt/analysis_modules/halo_finding/halo_objects.py def virial_mass(self, virial_overdensity=200., bins=300): . . . Hope that helps! If you explain a more clearly what you’d like a new function to do, we might be able to help a little more or point you to similar examples. Elizabeth On Jun 7, 2014, at 9:18 PM, Reju Sam John <rejusamjohn@gmail.com> wrote:
Where can I find the definition (source code) of the following function ?
virial_mass(virial_overdensity=200.0, bins=300)
Like this function I have to create a new function for my derived field.
-- Reju Sam John _______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org