[yt-users] how to call HaloMassFcn
Michael Kuhlen
mqk at astro.berkeley.edu
Wed Sep 8 19:06:57 PDT 2010
I ran into the same problem today. The following works for me:
from yt.mods import *
from yt.analysis_modules.halo_mass_function.api import *
I figured this out by looking in $YTDIR/yt/analysis_modules/.
Mike
gso at physics.ucsd.edu wrote:
> I'm getting this error on an old script I used to create the halo mass
> function on Triton
>
> I had on top
> from yt.analysis_modules.halo_finding.api import HaloMassFcn
>
> and got:
>
> Traceback (most recent call last):
> File "parallelHF.py", line 52, in <module>
> hmf = HaloMassFcn(pf, halo_file=filename[3]+"ParallelHopAnalysis.out",
> NameError: name 'HaloMassFcn' is not defined
>
> I was wondering if this is because yt was updated to 2.0 on triton?
> in the email there's an example of what to use for HaloFinder
>
> from yt.analysis_modules.halo_finding.api import HaloFinder
>
> so for HaloMassFcn do I do
>
> from yt.analysis_modules.halo_????.api import HaloMassFcn
>
> can someone fill in what ???? is, or how I can find that information? Or
> is the 2.0 manual out that I'm not aware of that has this information
> already?
>
> From
> G.S.
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
--
*********************************************************************
* *
* Dr. Michael Kuhlen Theoretical Astrophysics Center *
* email: mqk at astro.berkeley.edu UC Berkeley *
* cell phone: (831) 588-1468 601 Campbell Hall *
* skype username: mikekuhlen Berkeley, CA 94720 *
* *
*********************************************************************
More information about the yt-users
mailing list