Issue #847: Total mass fails with zero particles (yt_analysis/yt)
29 May
2014
29 May
'14
5:22 p.m.
New issue 847: Total mass fails with zero particles https://bitbucket.org/yt_analysis/yt/issue/847/total-mass-fails-with-zero-pa... Aaron Smith: After loading a Flash dataset (cosmological simulation) with gas and DM particles I tried to take the total mass within a subvolume but because there were no DM particles within the region it failed. The call should return zero mass, or at least some error handling should stop it from breaking. Note: reg.quantities.total_mass() works if reg = ds.h.all_data() but does not if reg = ds.sphere("max", (.2, "kpc")) for example. Traceback can be found at http://paste.yt-project.org/show/4699/ Responsible: jzuhone
3620
Age (days ago)
3620
Last active (days ago)
0 comments
1 participants
participants (1)
-
Aaron Smith