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

Update to gui #720

Closed
wants to merge 8 commits into from
Closed

Update to gui #720

wants to merge 8 commits into from

Conversation

Heringer-Epson
Copy link
Contributor

The variables in the user interface have been updated to reflect changes on tardis. The outdated version was making use of the 'model' class, which corresponds to an older implementation of tardis. The updated version uses the 'simulation' class.

@unoebauer
Copy link
Contributor

Hi @Heringer-Epson - does the Gui now work?

@Heringer-Epson
Copy link
Contributor Author

Heringer-Epson commented Mar 27, 2017 via email

@pfreddy
Copy link
Contributor

pfreddy commented Jul 5, 2017

After the update, the GUI starts indeed. However, the "Show linw info" button doesn't open the new window with the ifo about the last interactions. The error message:

File "/home/barna/anaconda3/envs/tardis/lib/python2.7/site-packages/tardis/gui/widgets.py", line 57, in show_line_info
self.span.xy[2][0], self.tablecreator))
File "/home/barna/anaconda3/envs/tardis/lib/python2.7/site-packages/tardis/gui/widgets.py", line 822, in init
self.parent.model)
AttributeError: 'ModelViewer' object has no attribute 'model'

These lines are not affected by this update.

@ssim ssim mentioned this pull request Jul 14, 2017
@ssim
Copy link
Contributor

ssim commented Jul 14, 2017

If #765 is merged hopefully some of the issues flagged here are resolved and this PR can be closed?

@unoebauer
Copy link
Contributor

@pfreddy, @Heringer-Epson - we have updated the GUI (PR #765, already merged into master). Can you check whether these changes solve the problems you experienced?

@Heringer-Epson
Copy link
Contributor Author

Heringer-Epson commented Jul 17, 2017 via email

@unoebauer
Copy link
Contributor

@Heringer-Epson - if you are referring to the range for extracting additional line information, you can simply drag the boundaries of the red shaded region with the cursor and thus set by hand the wavelength range.

@pfreddy
Copy link
Contributor

pfreddy commented Jul 18, 2017

@unoebauer It works! However, I had to slightly modify tardis/analysis.py, because the required (tardis_env27.yml) pandas 0.20 doesn't use the 'sort' function, but 'sort_values' instead.

line 106 > self.last_line_in_table.sort_values('count', ascending=False,
inplace=True)
line 110 > self.last_line_out_table.sort_values('count', ascending=False,
inplace=True)

Thanks!

@wkerzendorf
Copy link
Member

@Heringer-Epson @unoebauer what's going on with this PR?

@unoebauer
Copy link
Contributor

I think, we can abandon and close this PR since the GUI was officially fixed with PR #765. Any objections, @Heringer-Epson?

@wkerzendorf wkerzendorf closed this Aug 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants