Skip to content

Commit a4f45b9

Browse files
committed
Squash bug
1 parent 2b4ca18 commit a4f45b9

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

velociraptor/catalogue/soap_catalogue.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,14 @@ def _register_metadata(self, handle: h5py.File):
140140
in the constructor.
141141
"""
142142
metadata = handle[self.name].attrs
143-
try:
144-
factor = (
145-
metadata["Conversion factor to physical CGS (including cosmological corrections)"][0]
146-
* unyt.A ** metadata["U_I exponent"][0]
147-
* unyt.cm ** metadata["U_L exponent"][0]
148-
* unyt.g ** metadata["U_M exponent"][0]
149-
* unyt.K ** metadata["U_T exponent"][0]
150-
* unyt.s ** metadata["U_t exponent"][0]
151-
)
143+
factor = (
144+
metadata["Conversion factor to physical CGS (including cosmological corrections)"][0]
145+
* unyt.A ** metadata["U_I exponent"][0]
146+
* unyt.cm ** metadata["U_L exponent"][0]
147+
* unyt.g ** metadata["U_M exponent"][0]
148+
* unyt.K ** metadata["U_T exponent"][0]
149+
* unyt.s ** metadata["U_t exponent"][0]
150+
)
152151
self.conversion_factor = unyt.unyt_quantity(factor)
153152
# avoid overflow by setting the base unit system to something that works
154153
# well for cosmological simulations

0 commit comments

Comments
 (0)