-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Adding Convergence Plots #1636
Adding Convergence Plots #1636
Conversation
adding convergence plot notebook and python file
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Before a pull request is accepted, it must meet the following criteria:
|
This looks like a great start. I have a few stylistic comments: Plasma updates
Temperature plots
|
8dcb18d
to
5989612
Compare
3cb95ee
to
f1f52ca
Compare
6e987a8
to
e70c266
Compare
ff0085b
to
453e08b
Compare
Codecov Report
@@ Coverage Diff @@
## master #1636 +/- ##
==========================================
+ Coverage 61.88% 62.45% +0.56%
==========================================
Files 63 64 +1
Lines 5851 5985 +134
==========================================
+ Hits 3621 3738 +117
- Misses 2230 2247 +17
Continue to review full report at Codecov.
|
479405e
to
3e98f7f
Compare
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.
This all looks great @atharva-2001! All requested changes seem to have been addressed, and the code itself works really well. Good job!
746e2f9
to
69c9a8c
Compare
126fa86
to
dab2341
Compare
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.
Brilliant work! Thank you for addressing all of my nitpicky comments 😄
@atharva-2001 this needs rebasing now that #1723 is merged |
dab2341
to
5baed30
Compare
5baed30
to
2b08432
Compare
* initial commit adding convergence plot notebook and python file * updating class structure * adding functions to create empty plots * adding functions to update convergence plots * fixing imports for convergence plots * changes to get update convergence plots from tardis/simulation/base.py * adding updated notebook * allowing user to customize plot layout from run_tardis * adding options to not show plots and change colorscale * adding docstrings * adding updated notebook * fix typo fixing swapped y-axis labels in plasma plot * exporting convergence plots * layout changes fixing colors, removing marker points, fixing labels * adding check to see if data is collected necessary when running simulation with just one iteration * moving convergence plots notebook * adding tests for convergence class and transition_colors function * fix typos and adding comments * reformatted using black * adding function to override default plot configuration * showing how plots can be updated in the notebook * fixing plot heights and tick labels * code refactor raising TypeErrors, fix typos * adding docstrings * fixing axes and legend, converting units using astropy * fixing hover data and making axes titles romanized/upright in certain places * use same colorscale for both plasma and luminosity plots * add docstrings and code comments * add option to change colorscale, format using black, add updated notebook * remove unnecessary customizations, edit docstrings * add documentation in the notebook * test length of fig.data tuple after build * add tests for update and override function * edit docstrings and code comments * renaming luminosity_plot to t_inner_luminosities_plot * minor changes in documentation and docstrings * [build docs]
* initial commit adding convergence plot notebook and python file * updating class structure * adding functions to create empty plots * adding functions to update convergence plots * fixing imports for convergence plots * changes to get update convergence plots from tardis/simulation/base.py * adding updated notebook * allowing user to customize plot layout from run_tardis * adding options to not show plots and change colorscale * adding docstrings * adding updated notebook * fix typo fixing swapped y-axis labels in plasma plot * exporting convergence plots * layout changes fixing colors, removing marker points, fixing labels * adding check to see if data is collected necessary when running simulation with just one iteration * moving convergence plots notebook * adding tests for convergence class and transition_colors function * fix typos and adding comments * reformatted using black * adding function to override default plot configuration * showing how plots can be updated in the notebook * fixing plot heights and tick labels * code refactor raising TypeErrors, fix typos * adding docstrings * fixing axes and legend, converting units using astropy * fixing hover data and making axes titles romanized/upright in certain places * use same colorscale for both plasma and luminosity plots * add docstrings and code comments * add option to change colorscale, format using black, add updated notebook * remove unnecessary customizations, edit docstrings * add documentation in the notebook * test length of fig.data tuple after build * add tests for update and override function * edit docstrings and code comments * renaming luminosity_plot to t_inner_luminosities_plot * minor changes in documentation and docstrings * [build docs]
* initial commit adding convergence plot notebook and python file * updating class structure * adding functions to create empty plots * adding functions to update convergence plots * fixing imports for convergence plots * changes to get update convergence plots from tardis/simulation/base.py * adding updated notebook * allowing user to customize plot layout from run_tardis * adding options to not show plots and change colorscale * adding docstrings * adding updated notebook * fix typo fixing swapped y-axis labels in plasma plot * exporting convergence plots * layout changes fixing colors, removing marker points, fixing labels * adding check to see if data is collected necessary when running simulation with just one iteration * moving convergence plots notebook * adding tests for convergence class and transition_colors function * fix typos and adding comments * reformatted using black * adding function to override default plot configuration * showing how plots can be updated in the notebook * fixing plot heights and tick labels * code refactor raising TypeErrors, fix typos * adding docstrings * fixing axes and legend, converting units using astropy * fixing hover data and making axes titles romanized/upright in certain places * use same colorscale for both plasma and luminosity plots * add docstrings and code comments * add option to change colorscale, format using black, add updated notebook * remove unnecessary customizations, edit docstrings * add documentation in the notebook * test length of fig.data tuple after build * add tests for update and override function * edit docstrings and code comments * renaming luminosity_plot to t_inner_luminosities_plot * minor changes in documentation and docstrings * [build docs]
* initial commit adding convergence plot notebook and python file * updating class structure * adding functions to create empty plots * adding functions to update convergence plots * fixing imports for convergence plots * changes to get update convergence plots from tardis/simulation/base.py * adding updated notebook * allowing user to customize plot layout from run_tardis * adding options to not show plots and change colorscale * adding docstrings * adding updated notebook * fix typo fixing swapped y-axis labels in plasma plot * exporting convergence plots * layout changes fixing colors, removing marker points, fixing labels * adding check to see if data is collected necessary when running simulation with just one iteration * moving convergence plots notebook * adding tests for convergence class and transition_colors function * fix typos and adding comments * reformatted using black * adding function to override default plot configuration * showing how plots can be updated in the notebook * fixing plot heights and tick labels * code refactor raising TypeErrors, fix typos * adding docstrings * fixing axes and legend, converting units using astropy * fixing hover data and making axes titles romanized/upright in certain places * use same colorscale for both plasma and luminosity plots * add docstrings and code comments * add option to change colorscale, format using black, add updated notebook * remove unnecessary customizations, edit docstrings * add documentation in the notebook * test length of fig.data tuple after build * add tests for update and override function * edit docstrings and code comments * renaming luminosity_plot to t_inner_luminosities_plot * minor changes in documentation and docstrings * [build docs]
This PR adds convergence plots to TARDIS.
Description
Convergence plots will allow the user to see the convergence of the simulation in plots and study the state of the simulation at different iterations. Convergence plots are plotted by default as the simulation runs. One can configure the plots by providing arguments in the
run_tardis
function. This includes overriding the default plotly layout of the graphs and options to change color scale and show or not show the plots.Motivation and context
How has this been tested?
Examples
Link to the convergence plots in the documentation.
Link to the notebook.
Link to the API
Convergence Plots along with progress bars
See also: #1629
Type of change
Checklist