Skip to content

Commit

Permalink
probe calibration) Save the files of transM and points info with time…
Browse files Browse the repository at this point in the history
…stamp
  • Loading branch information
hannalee2 committed Sep 25, 2024
1 parent d6bfbf4 commit da46864
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions parallax/probe_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,8 @@ def update(self, stage, debug_info=None):
def complete_calibration(self, filtered_df):
# save the filtered points to a new file
print("ProbeCalibration: complete_calibration")
self.file_name = f"points_{self.stage.sn}.csv"
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
self.file_name = f"points_{self.stage.sn}_{timestamp}.csv"
self.transM_LR = self._get_transM(filtered_df, save_to_csv=True, file_name=self.file_name, noise_threshold=20)

if self.transM_LR is None:
Expand All @@ -633,7 +634,7 @@ def complete_calibration(self, filtered_df):
self._print_formatted_transM()
print("=========================================================")
self._update_info_ui(disp_avg_error=True, save_to_csv=True, \
file_name = f"transM_{self.stage.sn}.csv")
file_name = f"transM_{self.stage.sn}_{timestamp}.csv")

if self.model.bundle_adjustment:
self.old_transM, self.old_scale = self.transM_LR, self.scale
Expand All @@ -644,7 +645,7 @@ def complete_calibration(self, filtered_df):
self._print_formatted_transM()
print("=========================================================")
self._update_info_ui(disp_avg_error=True, save_to_csv=True, \
file_name = f"transM_BA_{self.stage.sn}.csv")
file_name = f"transM_BA_{self.stage.sn}_{timestamp}.csv")
else:
return

Expand Down

0 comments on commit da46864

Please sign in to comment.