Skip to content

Commit

Permalink
syncing work. this refs #79
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBilheux committed Aug 22, 2023
2 parents 8ecc776 + ab656c7 commit 1477716
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
3 changes: 1 addition & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ dependencies:
- tomopy
- pyqtgraph
- tqdm
- dxchange
- pip
- pip:
- NeuNorm
- inflect
- neutronbraggedge
9 changes: 9 additions & 0 deletions src/hyperctui/autonomous_reconstruction/event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,13 @@ def checking_state_of_projections_table(self):
self.parent.ui.autonomous_reconstruction_tabWidget.setCurrentIndex(1)

self.initialize_reconstruction_table()
# fill table with as many as TOF regions reconstruction requested
# tof_regions_dict = self.parent.session_dict[SessionKeys.tof_regions]
tof_regions_dict = self.parent.tof_regions
o_table = TableHandler(table_ui=self.parent.ui.autonomous_reconstructions_tableWidget)




def initialize_reconstruction_table(self):
# fill table with as many as TOF regions reconstruction requested
Expand Down Expand Up @@ -414,6 +421,8 @@ def refresh_reconstruction_table(self):
"""
pass



def fill_table_with_list_folders(self, list_folders=None, starting_row_index=0):

if list_folders is None:
Expand Down
4 changes: 3 additions & 1 deletion src/hyperctui/pre_processing_monitor/event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def update_ob_monitor_table(self,
"""
this method check the new OB folders showing up and updates the table
"""
logging.info(f"updating the monitor table of {DataType.ob}")
logging.info(f"-- checking if new {DataType.ob} showed up and updating the monitor table.")

table_ui = self.parent.ui.obs_tableWidget

Expand All @@ -37,8 +37,10 @@ def update_ob_monitor_table(self,
name_of_output_ob_folder = self.grand_parent.ui.obs_output_location_label.text()
list_ob_folders = o_get.list_ob_folders_in_output_directory(output_folder=name_of_output_ob_folder,
title=title)
logging.info(f"-- list_ob_folders: {list_ob_folders}")
list_folder_previously_found = self.grand_parent.session_dict[
SessionKeys.list_ob_folders_initially_there]
logging.info(f"-- list_folder_previously_found: {list_folder_previously_found}")

if len(list_ob_folders) == len(list_folder_previously_found):
logging.info(f"No new OBs have been found! nothing to update.")
Expand Down
2 changes: 0 additions & 2 deletions src/hyperctui/setup_projections/event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ def produce_unused_formatted_run_title(self, run_title):

full_file_name = os.path.join(mcp_raw, run_title)

print(f"{full_file_name =}")

if not os.path.exists(full_file_name):
return run_title, False

Expand Down
1 change: 1 addition & 0 deletions static/reconstruction_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}

0 comments on commit 1477716

Please sign in to comment.