Skip to content

Conversation

@jvshields
Copy link
Contributor

@jvshields jvshields commented Sep 30, 2025

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.

Rodot- and others added 30 commits June 25, 2025 09:11
…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]>
@jvshields jvshields marked this pull request as ready for review December 1, 2025 21:48
@jvshields jvshields mentioned this pull request Dec 3, 2025
@jvshields
Copy link
Contributor Author

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@connor-mcclellan connor-mcclellan left a 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!

@andrewfullard andrewfullard merged commit 6025bed into tardis-sn:master Dec 5, 2025
23 of 26 checks passed
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.

7 participants