[yt-dev] 2D FLASH data

John Forbes jforbes at ucolick.org
Wed Sep 5 12:05:59 PDT 2012


Hello,

I'm running into an issue with FLASH 2D data, namely that occasionally
a grid will end up with a z-position of 0.5 instead of
domain_left_edge+0.5. Since most of the grids are at the latter
location in z, this messes up slices.

Nathan has traced the problem to frontends/flash/data_structures.py,
in particular the for loop at line 146. It looks like I'm catching an
edge case where na.rint rounds .4999999... to 0 instead of 0.5 to 1.

A data file which exhibits this issue is available here:
http://www.ucolick.org/~jforbes/cloud_hdf5_plt_cnt_0000

For the record I'm using revision 1a3c927ef00c of the development branch.

Thank you,
John Forbes



More information about the yt-dev mailing list