File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments