Skip to content

Commit

Permalink
Extract cosmology for halo catalogues
Browse files Browse the repository at this point in the history
  • Loading branch information
robjmcgibbon committed Nov 12, 2024
1 parent 2b5ea76 commit b80ba6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions swiftsimio/metadata/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,7 @@ def __init__(self, filename: str, units: SWIFTUnits):
self.postprocess_header()

self.load_groups()
self.extract_cosmology()

# After we've loaded all this metadata, we can safely release the file handle.
self.handle.close()
Expand Down Expand Up @@ -1285,6 +1286,7 @@ def __init__(self, filename: str, units: SWIFTUnits):
self.unpack_subhalo_number()

self.load_groups()
self.extract_cosmology()

# After we've loaded all this metadata, we can safely release the file handle.
self.handle.close()
Expand Down

0 comments on commit b80ba6d

Please sign in to comment.