h = s.halos() not working in pynbody

98 views
Skip to first unread message

Nilanjana Nandi

unread,
Aug 12, 2022, 2:34:14 AM8/12/22
to pynbody-users
Hi.

h = s.halos() is unable to detect the halos from the ramses output, both with or without the rockstar halo finder software.

Without the rockstar software the error is shown as:
Traceback (most recent call last):
  File "/home/Nilanjana/ramses/rot-vel.py", line 11, in <module>
    h = s.halos()
  File "/home/Nilanjana/anaconda3/lib/python3.9/site-packages/pynbody/snapshot/__init__.py", line 789, in halos
    raise RuntimeError("No halo catalogue found for %r" % str(self))
RuntimeError: No halo catalogue found for '<SimSnap "../output_00001" len=3192086>'


and implementing the software : 
Traceback (most recent call last):
  File "PatternFrequency.py", line 24, in <module>
    h3=s.halos()
  File "/home/newuser/anaconda3/lib/python3.7/site-packages/pynbody/snapshot/__init__.py", line 785, in halos
    return c(self, *args, **kwargs)
  File "/home/newuser/anaconda3/lib/python3.7/site-packages/pynbody/halo/ahf.py", line 56, in __init__
    self._run_ahf(sim)
  File "/home/newuser/anaconda3/lib/python3.7/site-packages/pynbody/halo/ahf.py", line 645, in _run_ahf
    'gridmax': lgmax
  File "/home/newuser/anaconda3/lib/python3.7/configparser.py", line 799, in get
    d)
  File "/home/newuser/anaconda3/lib/python3.7/configparser.py", line 394, in before_get
    self._interpolate_some(parser, option, L, value, section, defaults, 1)
  File "/home/newuser/anaconda3/lib/python3.7/configparser.py", line 427, in _interpolate_some
    "bad interpolation variable reference %r" % rest)
configparser.InterpolationSyntaxError: bad interpolation variable reference '%(typecode)d\noutfile_prefix = %(filename)s\nLgridDomain = 256\nLgridMax = %(gridmax)d\nNperDomCell = 5\nNperRefCell = 5\nVescTune = 1.5\nNminPerHalo = 50\nRhoVir = 0\nDvir = 200\nMaxGatherRad = 10.0'


It will be great if you kindly help to solve this issue.
Thanks & regards.
Reply all
Reply to author
Forward
0 new messages