Exception: Group catalog does not have requested field [SubhaloFlag]!

Sen Wang
  • 22 Dec '24

Hi Dylan,
When I run groupcat.loadSubhalos(Fields=['SubhaloFlag']), it reports "Exception: Group catalog does not have requested field [SubhaloFlag]!".
Then I print all the fields and find that the fields contain all the Subfind Subhalos (Galaxies) fields except 'SubhaloFlag'.
How can I fix it?
Many thanks
Best wishes,
Sen

Dylan Nelson
  • 23 Dec '24

For what simulation and snapshot?

Sen Wang
  • 30 Dec '24

Hi Dylan,
Sorry for the late reply due to the latest busy. Sincerely apologize.
The simulation is TNG-100 and the snapshot is 099.

Best wishes,
Sen

Dylan Nelson
  • 30 Dec '24

This seems fine:

import illustris_python as il
basePath = 'sims.TNG/TNG100-1/output/'
x = il.groupcat.loadSubhalos(basePath, 99, fields=['SubhaloFlag'])
x.shape

(4371211,)
Sen Wang
  • 31 Dec '24

Thank you Dylan! I'll check other details!

  • Page 1 of 1