Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
steinnymir committed Oct 25, 2023
1 parent 6fc47ac commit 60242a7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions sed/calibrator/energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1535,12 +1535,7 @@ def apply_energy_offset(
# flip sign for binding energy scale
energy_scale = self.get_current_calibration().get("energy_scale", None)
if energy_scale == "binding":
if None in signs:
raise ValueError(
"Cannot apply binding energy offset to columns with unknown sign.",
)
else:
signs = [-1 * s for s in signs if s is not None]
signs = [-1 * s for s in signs if s is not None]
elif energy_scale == "kinetic":
pass
elif energy_scale is None:
Expand Down

0 comments on commit 60242a7

Please sign in to comment.