error "Zero-length selections are not allowed"
Hi everyone, I get an error when executing the simple script below: ------------------------------------------------------------------------------ from yt.mods import * output = 'DD0010/data0010' pf = load(output) region = pf.h.region([0.5,0.5,0.5],[0.0,0.0,0.0],[1.0,1.0,1.0]) ------------------------------------------------------------------------------ I have pasted the output there: http://paste.yt-project.org/show/awqlzVK7mAhtiIVihFfC/ I think the problem is that my simulation has only 2 particles (no gas) and both particles are in subgrids so the root grid is empty: ------------------------------------------------------------------------------ [19:46:54] Obiwan:$ h5ls DD0010/data0010.cpu0000 Grid00000001 Group Grid00000002 Group Metadata Group [19:47:09] Obiwan:$ h5ls DD0010/data0010.cpu0000/Grid00000001 [19:47:15] Obiwan:$ h5ls DD0010/data0010.cpu0000/Grid00000002 particle_index Dataset {2} particle_mass Dataset {2} particle_position_x Dataset {2} particle_position_y Dataset {2} particle_position_z Dataset {2} particle_type Dataset {2} particle_velocity_x Dataset {2} particle_velocity_y Dataset {2} particle_velocity_z Dataset {2} ------------------------------------------------------------------------------ I would really appreciate if someone could help me to fix this. Thanks a lot, JC
Hi JC, Looks like a problem with detecting the fields. If you send me info off-list on how to replicate this, I can see where exactly the field detection is going awry, and how to fix it. -Matt On Sat, Mar 24, 2012 at 4:56 AM, Jean-Claude Passy <jcpassy@gmail.com> wrote:
Hi everyone,
I get an error when executing the simple script below:
------------------------------------------------------------------------------ from yt.mods import * output = 'DD0010/data0010' pf = load(output) region = pf.h.region([0.5,0.5,0.5],[0.0,0.0,0.0],[1.0,1.0,1.0]) ------------------------------------------------------------------------------ I have pasted the output there: http://paste.yt-project.org/show/awqlzVK7mAhtiIVihFfC/ I think the problem is that my simulation has only 2 particles (no gas) and both particles are in subgrids so the root grid is empty:
------------------------------------------------------------------------------ [19:46:54] Obiwan:$ h5ls DD0010/data0010.cpu0000 Grid00000001 Group Grid00000002 Group Metadata Group [19:47:09] Obiwan:$ h5ls DD0010/data0010.cpu0000/Grid00000001 [19:47:15] Obiwan:$ h5ls DD0010/data0010.cpu0000/Grid00000002 particle_index Dataset {2} particle_mass Dataset {2} particle_position_x Dataset {2} particle_position_y Dataset {2} particle_position_z Dataset {2} particle_type Dataset {2} particle_velocity_x Dataset {2} particle_velocity_y Dataset {2} particle_velocity_z Dataset {2} ------------------------------------------------------------------------------ I would really appreciate if someone could help me to fix this. Thanks a lot,
JC
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Off-list JC sent me his data, and I was able to track it down to an off-by-one error for field detection in Enzo. Should be fixed now! On Mon, Mar 26, 2012 at 5:28 AM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi JC,
Looks like a problem with detecting the fields. If you send me info off-list on how to replicate this, I can see where exactly the field detection is going awry, and how to fix it.
-Matt
On Sat, Mar 24, 2012 at 4:56 AM, Jean-Claude Passy <jcpassy@gmail.com> wrote:
Hi everyone,
I get an error when executing the simple script below:
------------------------------------------------------------------------------ from yt.mods import * output = 'DD0010/data0010' pf = load(output) region = pf.h.region([0.5,0.5,0.5],[0.0,0.0,0.0],[1.0,1.0,1.0]) ------------------------------------------------------------------------------ I have pasted the output there: http://paste.yt-project.org/show/awqlzVK7mAhtiIVihFfC/ I think the problem is that my simulation has only 2 particles (no gas) and both particles are in subgrids so the root grid is empty:
------------------------------------------------------------------------------ [19:46:54] Obiwan:$ h5ls DD0010/data0010.cpu0000 Grid00000001 Group Grid00000002 Group Metadata Group [19:47:09] Obiwan:$ h5ls DD0010/data0010.cpu0000/Grid00000001 [19:47:15] Obiwan:$ h5ls DD0010/data0010.cpu0000/Grid00000002 particle_index Dataset {2} particle_mass Dataset {2} particle_position_x Dataset {2} particle_position_y Dataset {2} particle_position_z Dataset {2} particle_type Dataset {2} particle_velocity_x Dataset {2} particle_velocity_y Dataset {2} particle_velocity_z Dataset {2} ------------------------------------------------------------------------------ I would really appreciate if someone could help me to fix this. Thanks a lot,
JC
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Jean-Claude Passy
-
Matthew Turk