[Yt-dev] h5py bug

gso at physics.ucsd.edu gso at physics.ucsd.edu
Mon Apr 11 19:30:28 PDT 2011


Hi Stephen,

I got the error on the
print f['Grid00000001']['particle_position_x'][:]
line, same as before, it didn't even get to the 2nd f.close()

So I take it the error is in h5py but your patch in YT only fixes it in
the case of loading halo data?

From
G.S.


> Hi all,
>
>> I'll report it upstream if I can replicate it in a simple script. I'll
>> also give 1.2.1 a shot, which is also available. I'll let you know.
>
> After some testing, 1.2.1 does not fix the error. I've also found that
> a simple script like this will make the error:
>
> import h5py
> f = h5py.File('data0090.cpu0000')
> f.close()
> f = h5py.File('data0090.cpu0000')
> print f['Grid00000001']['particle_position_x'][:]
> f.close()
>
> Can someone try this on some data to see if they get the error too?
> Thanks!
>
>
> --
> Stephen Skory
> s at skory.us
> http://stephenskory.com/
> 510.621.3687 (google voice)
> _______________________________________________
> Yt-dev mailing list
> Yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>





More information about the yt-dev mailing list