Skip to content

Commit 306800a

Browse files
committed
Cleanup
1 parent f64f2b1 commit 306800a

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

mala/common/physical_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def read_from_openpmd_file(self, path, units=None, array=None):
220220
# units throughout the feature dimension.
221221
# Later, we can merge this unit check with the unit conversion
222222
# MALA does naturally.
223-
if self.si_unit_conversion and not np.isclose(mesh[str(0)].unit_SI, self.si_unit_conversion):
223+
if not np.isclose(mesh[str(0)].unit_SI, self.si_unit_conversion):
224224
raise Exception(
225225
"MALA currently cannot operate with OpenPMD "
226226
"files with non-MALA units."

mala/datahandling/ldos_aligner.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@ def align_ldos_to_ref(
139139
rank = 0
140140
size = 1
141141

142-
# import ipdb
143-
# ipdb.set_trace(context=30)
144-
145142
if rank == 0:
146143
# load in the reference snapshot
147144
snapshot_ref = self.parameters.snapshot_directories_list[

0 commit comments

Comments
 (0)