Skip to content

Commit 7bcf9d4

Browse files
committed
Tidy up an import statement
1 parent 71a6979 commit 7bcf9d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/abins/spowdersemiempiricalcalculator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ def load_formatted_data(self) -> SpectrumCollection:
194194
"""
195195
Loads S from an hdf file.
196196
"""
197+
from abins.constants import ONE_DIMENSIONAL_INSTRUMENTS
198+
197199
data = self._clerk.load(list_of_datasets=["data"], list_of_attributes=["filename", "order_of_quantum_events"])
198200

199201
if self._quantum_order_num > data["attributes"]["order_of_quantum_events"]:
@@ -214,8 +216,6 @@ def _stringify(key: str | bytes) -> str:
214216
# Some of the strings get stored as bytes, safer to just parse strings
215217
data_dict = {key: _stringify(value) for key, value in data_dict.items()}
216218

217-
from abins.constants import ONE_DIMENSIONAL_INSTRUMENTS
218-
219219
if self._instrument.get_name() in ONE_DIMENSIONAL_INSTRUMENTS:
220220
spectra = AbinsSpectrum1DCollection.from_dict(data_dict)
221221
else:

0 commit comments

Comments
 (0)