GUI: Force paths for common data collection modes

This commit is contained in:
2025-07-15 09:57:17 +02:00
parent 18e5520f35
commit 47d24e17d1
+5 -4
View File
@@ -133,14 +133,15 @@ class FilePathPanel(QWidget):
self.__dewar_pos = "None"
self.__puck_name = "Manual"
self.__puck_pos = 99
self.directory_edit.setText(f"{self.__formatted_date}/test")
else:
self.__sample_name = sample.sample_name
self.__dewar_pos = sample.loc_str()
self.__puck_name = sample.puck_name
self.__puck_pos = sample.pin
self.run_number_edit.setValue(1)
#if sample.aaredb_params is not None and sample.aaredb_params.directory is not None:
# self.directory_edit.setText(sample.aaredb_params.directory)
if sample.location is not None:
self.directory_edit.setText(f"{self.__formatted_date}/{self.__puck_name}/{self.__puck_pos}")
else:
self.directory_edit.setText(f"{self.__formatted_date}/manual/{self.__sample_name}")
self.update_filename()