Skip to content
Snippets Groups Projects

Reset calibration_metadata.yml before saving the initial calibration metadata

Merged Karim Ahmed requested to merge fix/saving_malformed_calibration_metadata_yml into master
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
+ 4
0
@@ -789,6 +789,10 @@ class CalibrationMetadata(dict):
else:
print(f"Warning: existing {self._yaml_fn} is malformed, "
"will be overwritten")
else:
# TODO: update after resolving this discussion
# https://git.xfel.eu/detectors/pycalibration/-/merge_requests/624
self.save()
def save(self):
with self._yaml_fn.open("w") as fd:
Loading