Skip to content

Commit

Permalink
Gui fix (#1011)
Browse files Browse the repository at this point in the history
* Fixed paren type

* Added velocity to table

* removed comment
  • Loading branch information
marxwillia authored and wkerzendorf committed Jan 23, 2020
1 parent 71dad34 commit 6bb343a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tardis/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def __init__(self, yamlconfigfile, parent=None):
super(ConfigEditor, self).__init__(parent)

#Configurations from the input and template
configDict = yaml.load(open(yamlconfigfile), Loader=yaml.CLoader))
configDict = yaml.load(open(yamlconfigfile), Loader=yaml.CLoader)
templatedictionary ={'tardis_config_version':[True, 'v1.0'],
'supernova':{ 'luminosity_requested':[True, '1 solLum'],
'time_explosion':[True, None],
Expand Down Expand Up @@ -425,7 +425,7 @@ def __init__(self, tablecreator, parent=None):
self.plotTabWidget.addTab(self.spectrumWidget, "S&pectrum")

#Table widget
self.tablemodel = self.createTable([['Shell: '], ["Rad. temp", "Ws"]],
self.tablemodel = self.createTable([['Shell: '], ["Rad. temp", "Ws", "V"]],
(1, 0))
self.tableview = QtGui.QTableView()
self.tableview.setMinimumWidth(200)
Expand Down Expand Up @@ -575,6 +575,7 @@ def change_model(self, model):
self.tablemodel.arraydata = []
self.tablemodel.add_data(model.model.t_rad.value.tolist())
self.tablemodel.add_data(model.model.w.tolist())
self.tablemodel.add_data(model.model.velocity.value.tolist())

def change_spectrum_to_spec_virtual_flux_angstrom(self):
"""Change the spectrum data to the virtual spectrum."""
Expand Down

0 comments on commit 6bb343a

Please sign in to comment.