[yt-users] how to add halo quantity
Daegene Koh
dkoh30 at gatech.edu
Thu Nov 16 12:55:42 PST 2017
Hi all,
I’m trying to add a new quantity to a halo catalog following the docs as such,
23 def _total_mass(halo):
24 gasmass, dmmass = halo.data_object.quantities.total_mass()
25 return gasmass+dmmass
26
27 add_quantity('total_mass',_total_mass)
28 hc.add_quantity('total_mass’)
however, it seems at add_quantity is not defined. How do I go about doing this?
Cheers,
DK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20171116/e5a7a31d/attachment.html>
More information about the yt-users
mailing list