We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 91ff12b + 61ad3ae commit 6c026ccCopy full SHA for 6c026cc
hexrdgui/calibration/calibration_dialog_callbacks.py
@@ -172,8 +172,11 @@ def pop_undo_stack(self):
172
self.instr,
173
stack_item['instr_params'],
174
)
175
- for calibrator in self.calibrator.calibrators:
176
- calibrator.update_from_lmfit_params(stack_item['params'])
+ if hasattr(self.calibrator, 'calibrators'):
+ # The instrument calibrator will have a list of calibrators
177
+ # The structureless calibrator will not
178
+ for calibrator in self.calibrator.calibrators:
179
+ calibrator.update_from_lmfit_params(stack_item['params'])
180
181
self.update_config_from_instrument()
182
self.update_dialog_from_calibrator()
0 commit comments