-
-
Notifications
You must be signed in to change notification settings - Fork 421
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
Demonstrating the nelements
and the species_list
functionality in the SDEC plot notebook
#1665
Conversation
…lots notebook and fixing the link to the configuration schema
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
nelements
and the species_list
functionality in the SDEC plot notebook
Before a pull request is accepted, it must meet the following criteria:
|
2 similar comments
Before a pull request is accepted, it must meet the following criteria:
|
Before a pull request is accepted, it must meet the following criteria:
|
Codecov Report
@@ Coverage Diff @@
## master #1665 +/- ##
==========================================
- Coverage 61.89% 61.26% -0.64%
==========================================
Files 62 63 +1
Lines 5732 5798 +66
==========================================
+ Hits 3548 3552 +4
- Misses 2184 2246 +62
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making this PR - it was long due!
Few suggestions:
- Add these two sections also on matplotlib section (besides plotly) because that is shown first and is preferred in research papers
- Why have you used real packets_mode? SDEC plot looks better with virtual packets mode as you might have noticed (due to noise reduction) and it's also default, please change that. I guess it's possibly because you're using
tardis_example.yml
that have virt packet logging disabled but SDEC plot and line info widget expects opposite - create an issue for that and work on it if you like :)
Also please check what happens when both nelments and species_list are specified - AFAIR one takes precedence over other and it should be documented as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, @atharva-2001. My only comment is that I think for the nelements/ion plots we should set the wavelength range. It'll make it easier to see the different colours.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes. One minor but thing: it'll be better if you put 3 cells you added in matpltolib section, before "plotting flux instead of luminosity" since it and hiding spectrum are not as important as nelments and species_list is
Also I see you're using virtual packets now - that's good but don't forget creating issue for this:
I guess it's possibly because you're using tardis_example.yml that have virt packet logging disabled but SDEC plot and line info widget expects opposite - create an issue for that and work on it if you like :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't leave comments on the notebook, so I'm just putting them all here. A few small grammar changes.
- There are a few instances throughout where the plot is just referred to as 'SDEC plot', but there should be either 'an' or 'the' in front of it. These are two examples:
- "Now, import the plotting interface for SDEC plot..." should be "Now, import the plotting interface for the SDEC plot..."
- "By default, SDEC plot is produced..." should be "By default, an SDEC plot is produced..."
- "Since packets_mode is 1st argument..." -> "Since packets_mode is the first argument..."
- "By default, modeled spectrum is shown in SDEC plot." -> "By default, the model spectrum is shown in SDEC plot."
- "This method takes exact same arguments" -> "This method takes the exact same arguments"
- "In similar manner" -> "In a similar manner"
- " thereby providing you more" -> " thereby providing you with more"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all the changes. Looks good to me!
Demonstrating the `nelements` and the `species_list` functionality in the SDEC plot notebook
This PR adds documentation for
nelements
andspecies_list
options in the SDEC plot notebook.Description
The
nelements
functionality was added in PR #1506The
species_list
functionality was added in PR #1539This PR demonstrates these two functionalities in the notebook.
Motivation and context
How has this been tested?
Examples
Here is the link to the notebook in my documentation
Link to the notebook on nbviewer
Type of change
Checklist