Skip to content

Commit e3c39eb

Browse files
committed
Fix general shift allocation
1 parent 074cb9c commit e3c39eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

im2deep/calibration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ def fit(
136136
or self.charge_shifts[charge] == 0.0
137137
):
138138
no_shift_calculated.append(charge)
139+
self.charge_shifts[charge] = float(self.general_shift)
139140
LOGGER.debug(
140141
f"No shift factor calculated for charge states: {no_shift_calculated}. "
141142
f"Using general shift: {self.general_shift:.3f}."
142143
)
143-
self.charge_shifts[charge] = float(self.general_shift)
144144
else:
145145
# For global calibration, calculate a single shift
146146
try:

0 commit comments

Comments
 (0)