[yt-users] Error in Rockstar Halo Finding

Nathan Goldbaum nathan12343 at gmail.com
Wed Oct 26 12:54:11 PDT 2016


On Wed, Oct 26, 2016 at 2:51 PM, Reju Sam John <rejusamjohn at gmail.com>
wrote:

> Hi all,
>
> I am trying to run Rockstar Halo Finding with the following code.
>
> from yt.mods import *
> from yt.analysis_modules.halo_finding.rockstar.api import
> RockstarHaloFinder
>
> #find all of our simulation files
> files = glob.glob("RD*/*hierarchy")
>
> #hopefully the file name order is chronological
> files.sort()
> print files
>
> ts = TimeSeriesData.from_filenames(files[:])
> rh = RockstarHaloFinder(ts)
> rh.run()
>
> but I am getting the following error.
>  File "rockstar_halo_finding.py", line 14, in <module>
>     rh = RockstarHaloFinder(ts)
>   File "/home/john/yt_new/yt-x86_64/src/yt-hg/yt/analysis_modules/
> halo_finding/rockstar/rockstar.py", line 220, in __init__
>     self.pool, self.workgroup = self.runner.setup_pool()
>   File "/home/john/yt_new/yt-x86_64/src/yt-hg/yt/analysis_modules/
> halo_finding/rockstar/rockstar.py", line 102, in setup_pool
>     (self.num_writers, "writers") ]
>   File "/home/john/yt_new/yt-x86_64/src/yt-hg/yt/utilities/
> parallel_tools/parallel_analysis_interface.py", line 325, in from_sizes
>     pool.add_workgroup(size, name = name)
>   File "/home/john/yt_new/yt-x86_64/src/yt-hg/yt/utilities/
> parallel_tools/parallel_analysis_interface.py", line 293, in add_workgroup
>     group = self.comm.comm.Get_group().Incl(ranks)
> AttributeError: 'NoneType' object has no attribute 'Get_group'
>
> could you please explain what is going wrong here ?
>

Rockstar has to be run in parallel. There is an example, in the docstrings
for RockstarHaloFinder:

http://yt-project.org/docs/dev/reference/api/generated/yt.analysis_modules.halo_finding.rockstar.rockstar.RockstarHaloFinder.html


>
> Thank you.
> --
> Reju Sam John
>
> _______________________________________________
> 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/20161026/9279e6b6/attachment.html>


More information about the yt-users mailing list