diff --git a/src/hyperctui/autonomous_reconstruction/event_handler.py b/src/hyperctui/autonomous_reconstruction/event_handler.py index 13e812c..3376663 100644 --- a/src/hyperctui/autonomous_reconstruction/event_handler.py +++ b/src/hyperctui/autonomous_reconstruction/event_handler.py @@ -131,9 +131,9 @@ def start_acquisition(self): self.parent.ui.autonomous_tof_regions_groupBox.setEnabled(False) self.parent.ui.start_first_reconstruction_pushButton.setEnabled(False) self.parent.ui.start_first_reconstruction_pushButton.setStyleSheet(normal_style) - self.parent.ui.autonomous_refresh_pushButton.setEnabled(True) - # enable table + # enable + self.parent.ui.autonomous_refresh_pushButton.setEnabled(True) self.parent.ui.autonomous_monitor_groupBox.setVisible(True) self.parent.ui.autonomous_refresh_pushButton.setStyleSheet(interact_me_style) diff --git a/src/hyperctui/session/__init__.py b/src/hyperctui/session/__init__.py index bd242ea..e970cfb 100644 --- a/src/hyperctui/session/__init__.py +++ b/src/hyperctui/session/__init__.py @@ -44,6 +44,7 @@ class SessionKeys: # evaluation regions evaluation_regions = "evaluation regions dict" + evaluation_frequency = "evaluation frequency" # tof regions tof_roi_region = "TOF ROI region of top view dict" diff --git a/src/hyperctui/session/session_handler.py b/src/hyperctui/session/session_handler.py index 9685355..ef115a3 100644 --- a/src/hyperctui/session/session_handler.py +++ b/src/hyperctui/session/session_handler.py @@ -125,6 +125,9 @@ def save_from_ui(self): new_tof_regions[str(_key)] = tof_regions[_key] session_dict[SessionKeys.tof_regions] = new_tof_regions + # evaluation frequency + session_dict[SessionKeys.evaluation_frequency] = self.parent.ui.evaluation_frequency_spinBox.value() + self.parent.session_dict = session_dict def load_to_ui(self): @@ -245,6 +248,9 @@ def load_to_ui(self): new_evaluation_regions[int(_key)] = self.parent.evaluation_regions[_key] self.parent.evaluation_regions = new_evaluation_regions + evaluation_frequency = session_dict.get(SessionKeys.evaluation_frequency, 3) + self.parent.ui.evaluation_frequency_spinBox.setValue(evaluation_frequency) + ## tof top ROI regions if not session_dict.get(SessionKeys.tof_roi_region, None): session_dict[SessionKeys.tof_roi_region] = {'x0': 5, diff --git a/src/hyperctui/ui/main_application.ui b/src/hyperctui/ui/main_application.ui index e737e23..605a20f 100644 --- a/src/hyperctui/ui/main_application.ui +++ b/src/hyperctui/ui/main_application.ui @@ -1378,156 +1378,145 @@ - - - Monitor + + + 0 - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - false - - - Refresh table - - - - - - - - - true - - - QAbstractItemView::SingleSelection - - - QAbstractItemView::SelectRows - - - true - - - - Folder name - - - - - Log - - - - - Err + + + projections + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + false + + + Refresh table + + + + + + + + + true - - - - Meta. + + QAbstractItemView::SingleSelection - - - - Status + + QAbstractItemView::SelectRows - - - - - - - - - - Reconstructed images - - - - - - + + true + + - Location: - - - - - - - - 0 - 0 - + Folder name + + - N/A - - - - - - - false + Log + + - Checking reconstruction + Err - - - - - - - - + + - Reconstruction process: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - 100 - 0 - - - - - 100 - 16777215 - + Meta. + + - N/A + Status - - - - - + + + + + + + + reconstructions + + + + + + + + Location: + + + + + + + + 0 + 0 + + + + N/A + + + + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 40 + 20 + + + + + + + + false + + + Checking reconstruction + + + + + + + + + +