From c866c07abce9de36e425f090efb4457a8c54d61d Mon Sep 17 00:00:00 2001 From: gwm17 Date: Sat, 4 Feb 2023 20:02:47 -0500 Subject: [PATCH] Fix bug in UI where angles for reactions were shown in radians not degrees --- spspy/SpancUI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spspy/SpancUI.py b/spspy/SpancUI.py index 7d9a3da..c3946a1 100644 --- a/spspy/SpancUI.py +++ b/spspy/SpancUI.py @@ -1,4 +1,4 @@ -from .Spanc import Spanc, PeakType +from .Spanc import Spanc, PeakType, DEG2RAD from .Fitter import convert_fit_points_to_arrays, convert_resid_points_to_arrays from .ui.MPLCanvas import MPLCanvas from .ui.ReactionDialog import ReactionDialog @@ -311,7 +311,7 @@ class SpancGUI(QMainWindow): self.reactionTable.setCellWidget(row, 1, QLabel(str(rxn))) self.reactionTable.setItem(row, 2, QTableWidgetItem(str(rxn.params.beamEnergy))) self.reactionTable.setItem(row, 3, QTableWidgetItem(str(rxn.params.magneticField))) - self.reactionTable.setItem(row, 4, QTableWidgetItem(str(rxn.params.spsAngle))) + self.reactionTable.setItem(row, 4, QTableWidgetItem(str(rxn.params.spsAngle / DEG2RAD))) self.reactionTable.resizeColumnsToContents() self.reactionTable.resizeRowsToContents()