[yt-dev] Issue #847: Total mass fails with zero particles (yt_analysis/yt)

Aaron Smith issues-reply at bitbucket.org
Thu May 29 15:22:59 PDT 2014


New issue 847: Total mass fails with zero particles
https://bitbucket.org/yt_analysis/yt/issue/847/total-mass-fails-with-zero-particles

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



More information about the yt-dev mailing list