Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gui fix #1011

Merged
merged 3 commits into from
Jan 23, 2020
Merged

Gui fix #1011

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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