mirror of
https://github.com/gwm17/spspy.git
synced 2024-11-22 18:18:52 -05:00
Fix bug in UI where angles for reactions were shown in radians not degrees
This commit is contained in:
parent
f128974fa7
commit
c866c07abc
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user