From 60242a744d48609dd511e42356a3b9417dcf4315 Mon Sep 17 00:00:00 2001 From: Steinn Ymir Agustsson Date: Wed, 25 Oct 2023 23:42:33 +0200 Subject: [PATCH] linting --- sed/calibrator/energy.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sed/calibrator/energy.py b/sed/calibrator/energy.py index 4e1e00d7..318ae75a 100644 --- a/sed/calibrator/energy.py +++ b/sed/calibrator/energy.py @@ -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: