Skip to content
Snippets Groups Projects
Commit 955e86ac authored by Karim Ahmed's avatar Karim Ahmed
Browse files

Merge branch 'fix/saving_malformed_calibration_metadata_yml' into 'master'

Reset calibration_metadata.yml before saving the initial calibration metadata

See merge request detectors/pycalibration!624
parents ac1881f4 fff5a3f2
No related branches found
No related tags found
1 merge request!624Reset calibration_metadata.yml before saving the initial calibration metadata
...@@ -789,6 +789,10 @@ class CalibrationMetadata(dict): ...@@ -789,6 +789,10 @@ class CalibrationMetadata(dict):
else: else:
print(f"Warning: existing {self._yaml_fn} is malformed, " print(f"Warning: existing {self._yaml_fn} is malformed, "
"will be overwritten") "will be overwritten")
else:
# TODO: update after resolving this discussion
# https://git.xfel.eu/detectors/pycalibration/-/merge_requests/624
self.save()
def save(self): def save(self):
with self._yaml_fn.open("w") as fd: with self._yaml_fn.open("w") as fd:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment