Skip to content

Commit

Permalink
Merge pull request #68 from neutrons/new-sangle-pv
Browse files Browse the repository at this point in the history
replace SANGLE with SampleAngle
  • Loading branch information
jmborr authored Oct 13, 2023
2 parents 30c74cd + 756cda9 commit 5cab0da
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion reflectivity_ui/interfaces/data_handling/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ def get_info(cls, workspace, data_object):
data_object.slit3_width = data["S3HWidth"].value[0]
data_object.huber_x = data["HuberX"].getStatistics().mean

data_object.sangle = data["SANGLE"].getStatistics().mean
if "SampleAngle" in data:
data_object.sangle = data["SampleAngle"].getStatistics().mean
else:
data_object.sangle = data["SANGLE"].getStatistics().mean

data_object.dist_sam_det = data["SampleDetDis"].value[0] * 1e-3
data_object.dist_mod_det = data["ModeratorSamDis"].value[0] * 1e-3 + data_object.dist_sam_det
Expand Down
6 changes: 3 additions & 3 deletions reflectivity_ui/ui/ui_main_window-edit.ui
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@
</size>
</property>
<property name="text">
<string>SANGLE</string>
<string>SampleAngle</string>
</property>
<property name="checked">
<bool>true</bool>
Expand Down Expand Up @@ -2358,7 +2358,7 @@
<string>Sample angle read from file</string>
</property>
<property name="text">
<string>SANGLE</string>
<string>SampleAngle</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
Expand Down Expand Up @@ -2399,7 +2399,7 @@
<string>Sample angle calculated from 2Θ and X-center position</string>
</property>
<property name="text">
<string>SANGLE-calc</string>
<string>SampleAngle-calc</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
Expand Down
6 changes: 3 additions & 3 deletions reflectivity_ui/ui/ui_main_window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@
</size>
</property>
<property name="text">
<string>SANGLE</string>
<string>SampleAngle</string>
</property>
<property name="checked">
<bool>true</bool>
Expand Down Expand Up @@ -1819,7 +1819,7 @@
<string>Sample angle read from file</string>
</property>
<property name="text">
<string>SANGLE</string>
<string>SampleAngle</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
Expand Down Expand Up @@ -1872,7 +1872,7 @@
<string>Sample angle calculated from 2Θ and X-center position</string>
</property>
<property name="text">
<string>SANGLE-calc</string>
<string>SampleAngle-calc</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
Expand Down

0 comments on commit 5cab0da

Please sign in to comment.