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

if new save the empty dictionary to reset calibration_metadata.yml

parent 12571446
No related branches found
No related tags found
1 merge request!624Reset calibration_metadata.yml before saving the initial calibration metadata
...@@ -789,6 +789,8 @@ class CalibrationMetadata(dict): ...@@ -789,6 +789,8 @@ 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:
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