-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
see example below:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[1], line 1
----> 1 obj.haloinfo()
File /blue/narayanan/desika.narayanan/conda/envs/py38/lib/python3.8/site-packages/caesar-0.2b0-py3.8-linux-x86_64.egg/caesar/loader.py:366, in CAESAR.haloinfo(self, top)
365 def haloinfo(self, top=10):
--> 366 info_printer(self, 'halo', top)
File /blue/narayanan/desika.narayanan/conda/envs/py38/lib/python3.8/site-packages/caesar-0.2b0-py3.8-linux-x86_64.egg/caesar/utils.py:152, in info_printer(obj, group_type, top)
150 for o in group_list:
151 cgsm = -1
--> 152 if (hasattr(o,'central_galaxy')) & (hasattr(o.central_galaxy,'masses')): cgsm = o.central_galaxy.masses['stellar']
153 output += ' %04d %0.2e %0.2e %0.2e %0.2e %0.2e\t| %0.2e \n' % \
154 (o.GroupID, o.masses['dm'], o.masses['stellar'],
155 o.masses['gas'],o.radii['total_half_mass'],
156 o.local_number_density['1000'], cgsm)
157 cnt += 1
File /blue/narayanan/desika.narayanan/conda/envs/py38/lib/python3.8/site-packages/caesar-0.2b0-py3.8-linux-x86_64.egg/caesar/loader.py:527, in Halo.__getattr__(self, attr)
523 if attr in self.obj._halo_dicts:
524 return LazyDict(
525 self.obj._halo_dicts[attr].keys(),
526 lambda d: self.obj._halo_dicts[attr][d][self._index])
--> 527 raise AttributeError("'{}' object as no attribute '{}'".format(
528 self.__class__.__name__, attr))
AttributeError: 'Halo' object as no attribute 'central_galaxy'
Metadata
Metadata
Assignees
Labels
No labels