Skip to content

Commit

Permalink
change how sub_run_index is pulled for UI
Browse files Browse the repository at this point in the history
  • Loading branch information
fanchercm committed Dec 4, 2024
1 parent 4be5cad commit ab5931a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrs/interface/texture_fitting/texture_fitting_crtl.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def update_diffraction_view(self, ax_object, fit_summary, sub_run):

# plot fitted data
if fit_summary.fit_table_operator.fit_result is not None:
sub_run_index = int(np.where(self._model.sub_runs == sub_run)[0])
sub_run_index = np.where(self._model.sub_runs == sub_run)[0][0]

fit_data = self.get_fitted_data(sub_run_index,
fit_summary.out_of_plan_angle)
Expand Down

0 comments on commit ab5931a

Please sign in to comment.