-
-
Notifications
You must be signed in to change notification settings - Fork 453
Continuum transitions #3318
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
Continuum transitions #3318
Conversation
…lities between levels and k
…ardis-sn#3183) * Refactor progress bar handling and improve convergence plot updates * Refactor progress bar initialization and layout handling for improved clarity and performance * Add monkeysession import to conftest.py for test utilities * Remove is_notebook function to clean up unused code * Refactor progress bar layout and improve environment detection; add warnings for plot rendering issues in convergence plots * Refactor Monte Carlo transport progress bar handling and improve code readability - Updated progress bar functions to enhance clarity and functionality. - Introduced `update_packets_pbar` for updating packet progress without iteration logic. - Added `reset_packet_pbar` to reset the packet progress bar for new iterations. - Refactored existing progress bar updates in the Monte Carlo main loop. - Improved code formatting and consistency across various classes and methods. - Enhanced import statements for better organization and readability. * Refactor SimpleTARDISWorkflow to improve progress bar handling and code organization * reset quickstart * duplicate init notebook mode * remove extra try except block * remove unused function * Refactor montecarlo_main_loop and progress bar utilities for improved readability and type hinting --------- Co-authored-by: Atharva Arya <[email protected]>
tardis/opacities/macro_atom/tests/test_continuum_transitions.py
Outdated
Show resolved
Hide resolved
|
I think the benchmarks are failing because the imports in the benchmark file got changed, so they can't find the function to import in the old commit checkout. |
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.
Just confirming that this is included intentionally - is this needed for pytest, or are these macroatom tests imported as a module somewhere I'm not seeing?
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.
Reasonable question. I didn't think too much about it since most of our test directories include one. I don't think we usually import tests, but I also don't remember off the top of my head if it's important for any pytest or fixture functionality.
connor-mcclellan
left a comment
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.
Looks good to me!
When trying to run the simulation crashes with
PlasmaException: Negative values in CorrPhotoIonRateCoeff. Try raising the number of montecarlo packets.This bug MAY be due to an incorrect calculation of CorrPhotoIonRateCoeff. It was investigated briefly by Connor and it seems like CorrPhotoIonRateCoeff or the values used to calculate it differ from analytic values calculated in some of the solvers used for Andrew's ionization and excitation calculations, and may resolve with that.