[yt-users] IO error
Britton Smith
brittonsmith at gmail.com
Mon Jul 10 13:13:17 PDT 2017
Hi Nick,
This is a bit puzzling since I think there have been relatively few changes
to the halo catalog frontend responsible for loading that data. That said,
I would be more than happy to take a look as I am responsible for much of
this code. Would you be able to share either 1) this dataset that is
failing to load or 2) a script that uses example data that I can run to
reproduce this?
Britton
On Mon, Jul 10, 2017 at 8:53 AM, Nick Gnedin <ngnedin at gmail.com> wrote:
>
> Folks,
>
> I have encountered a bizarre IO error. I am reading a file previously
> created by yt HOP halo finder on two separate machines. The file reads
> correctly on the machine it was created on, but on another machine with the
> most recent anaconda install (yt 3.3.5) the format is not recognized. Both
> machines are little endian. Is there any way to get more info on what yt
> does not like about that file?
>
> yt : [ERROR ] 2017-07-10 10:46:00,454 Couldn't figure out output type
> for hop.0.h5
> Traceback (most recent call last):
> File "hmf.py", line 14, in <module>
> Plot("hop.0.h5",color="b")
> File "hmf.py", line 8, in Plot
> my_halos = load(file)
> File "/ext/anaconda3/lib/python3.6/site-packages/yt/convenience.py",
> line 98, in load
> raise YTOutputNotIdentified(args, kwargs)
> yt.utilities.exceptions.YTOutputNotIdentified: Supplied ('hop.0.h5',) {},
> but could not load!
>
> Here is the script (taken form your examples):
>
>
> import yt
> from yt.mods import *
> from yt.analysis_modules.halo_mass_function.api import *
> import matplotlib.pyplot as plt
>
> def Plot(file,color="r"):
> my_halos = load(file)
> hmf = HaloMassFcn(halos_ds=my_halos)
> plt.loglog(hmf.masses_analytic, hmf.n_cumulative_analytic,colo
> r="orange",linewidth=3)
> plt.loglog(hmf.masses_sim, hmf.n_cumulative_sim,color=col
> or,linewidth=3)
>
> Plot("hop.0.h5",color="b")
>
>
> Thank you for your advice,
>
> Nick Gnedin
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20170710/1c43927e/attachment.html>
More information about the yt-users
mailing list