Skip to content

Commit

Permalink
Merge pull request #1781 from HEXRD/various-fixes
Browse files Browse the repository at this point in the history
Various fixes
  • Loading branch information
psavery authored Jan 28, 2025
2 parents ea32110 + 3ec6fce commit 32aa239
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 8 additions & 2 deletions hexrdgui/calibration/calibration_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,15 +551,21 @@ def mirror_constraints_from_first_detector(self):
for transform, transform_vary in statuses.items():
det_transform = detector['transform'][transform]
for k, v in transform_vary.items():
det_transform[k]['_param'].vary = v
param = det_transform[k]['_param']
if param.expr is not None:
# Skip over expression parameters
continue

param.vary = v
det_transform[k]['_vary'] = v

if self.delta_boundaries:
# Mirror the delta values too
for transform, delta_dict in deltas.items():
det_transform = detector['transform'][transform]
for k, v in delta_dict.items():
det_transform[k]['_param'].delta = v
param = det_transform[k]['_param']
param.delta = v
det_transform[k]['_delta'] = v

self.tree_view.reset_gui()
Expand Down
2 changes: 1 addition & 1 deletion hexrdgui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ def on_action_open_preconfigured_instrument_file_triggered(self):
aliases = {
'dcs.yml': 'DCS',
'dual_dexelas.yml': 'Dual Dexelas',
'rigaku.yml': 'Rigaku',
'rigaku.hexrd': 'Rigaku',
'varex.yml': 'Varex',
}

Expand Down
6 changes: 0 additions & 6 deletions hexrdgui/resources/ui/llnl_import_tool_dialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,6 @@
</property>
<item row="0" column="2">
<widget class="QPushButton" name="add_transform">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Add Transform</string>
</property>
Expand All @@ -318,9 +315,6 @@
</item>
<item row="0" column="1">
<widget class="QComboBox" name="transforms">
<property name="enabled">
<bool>false</bool>
</property>
<item>
<property name="text">
<string>None</string>
Expand Down

0 comments on commit 32aa239

Please sign in to comment.