-
-
Notifications
You must be signed in to change notification settings - Fork 424
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
Restructure/separate transport state #2492
Restructure/separate transport state #2492
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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 left some minor comments. So far the changes look really good an greatly improve code readability. Overall I think these changes will make the code base far more modular.
@@ -0,0 +1,334 @@ | |||
import warnings |
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 might be a bit only a minor detail, but I would name this file montecarlo_transport_state.py
as it only contains the MonteCarloTransportState
class.
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.
Agreed
actual = getattr(simulation_one_loop.simulation_state, name) | ||
if name in ["t_radiative", "output_nu", "output_energy"]: | ||
elif name in ["output_nu", "output_energy"]: | ||
OLD_TO_NEW_DICT = { |
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 assume this is a way to handle the old naming?
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 think it is - but I would have to look closer.
thanks - that is the plan 😄 |
*beep* *bop* Hi, human. The Click here to see your results. |
64e2b0c
to
ca18310
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2492 +/- ##
==========================================
+ Coverage 68.46% 68.63% +0.17%
==========================================
Files 159 159
Lines 13719 13749 +30
==========================================
+ Hits 9393 9437 +44
+ Misses 4326 4312 -14 ☔ View full report in Codecov by Sentry. |
Now located in the MCTState. Tests are still failing!
Spectra and scalars need a different testing method, out of scope for this PR.
Needs to merge #2476 before this one