Skip to content

Commit

Permalink
changed label of monitor table. this refs #58
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBilheux committed May 24, 2023
1 parent 3f25a88 commit 8763ae8
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 13 deletions.
1 change: 1 addition & 0 deletions src/hyperctui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
},
}


# main window dimensions
class UiSizeSmall:
width = 800
Expand Down
10 changes: 5 additions & 5 deletions src/hyperctui/autonomous_reconstruction/event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ def init_autonomous_table(self):
# output_table =
nbr_angles = self.parent.ui.evaluation_frequency_spinBox.value()
list_golden_ratio_angles_collected = self.parent.golden_ratio_angles[0:nbr_angles]
formatted1_list_golden_ratio_angles_collected = [f"{_value:.2f}" for _value in list_golden_ratio_angles_collected]
formatted2_list_golden_ratio = [_value.replace(".", "_") for _value in formatted1_list_golden_ratio_angles_collected]

tof_regions = self.parent.tof_regions
list_tof_region_collected = []
Expand All @@ -135,10 +137,8 @@ def init_autonomous_table(self):
_to = str(tof_regions[_index][EvaluationRegionKeys.to_value]).replace(".", "_")
list_tof_region_collected.append(f"from_{_from}Ang_to_{_to}Ang")





print(f"{formatted2_list_golden_ratio =}")
print(f"{list_tof_region_collected =}")

def refresh_table_clicked(self):
pass
pass
2 changes: 0 additions & 2 deletions src/hyperctui/autonomous_reconstruction/select_tof_regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ def check_state_ok_button(self):
else:
self.ui.pushButton.setEnabled(False)


def accept(self):
self.ok_clicked = True
self.save_table()
Expand All @@ -416,4 +415,3 @@ def sort(value1: float, value2: float):
minimum_value = np.min([value1, value2])
maximum_value = np.max([value1, value2])
return minimum_value, maximum_value

3 changes: 2 additions & 1 deletion src/hyperctui/initialization/gui_initialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from qtpy.QtGui import QPixmap
import numpy as np
import os
import pandas as pd

from hyperctui.utilities.config_handler import ConfigHandler
from hyperctui.utilities.table import TableHandler
Expand All @@ -28,7 +29,7 @@ def all(self):
self.autonomous_reconstruction_data()

def autonomous_reconstruction_data(self):
table = pd.read_csv(golden_angle_file)
table = pd.read_csv(golden_ratio_file)
self.parent.golden_ratio_angles = list(table['angles'])

def tabs(self):
Expand Down
6 changes: 3 additions & 3 deletions src/hyperctui/ui/main_application.ui
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,7 @@
</attribute>
<column>
<property name="text">
<string>File name</string>
<string>Folder name</string>
</property>
</column>
<column>
Expand Down Expand Up @@ -1434,8 +1434,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>100</width>
<height>30</height>
<width>98</width>
<height>28</height>
</rect>
</property>
<attribute name="label">
Expand Down
4 changes: 2 additions & 2 deletions src/hyperctui/ui/pre_processing_monitor.ui
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</attribute>
<column>
<property name="text">
<string>File name</string>
<string>Folder name</string>
</property>
</column>
<column>
Expand Down Expand Up @@ -138,7 +138,7 @@
</attribute>
<column>
<property name="text">
<string>File name</string>
<string>Folder name</string>
</property>
</column>
<column>
Expand Down
2 changes: 2 additions & 0 deletions testing_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ dependencies:
- dxchange=0.1.*
- h5py=3.3.0
- tomopy
- pandas
- pip:
- pyqtgraph
- NeuNorm
- neutronbraggedge

0 comments on commit 8763ae8

Please sign in to comment.