Skip to content
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

Merged

Conversation

wkerzendorf
Copy link
Member

@wkerzendorf wkerzendorf commented Dec 15, 2023

Needs to merge #2476 before this one

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Member

@AlexHls AlexHls left a 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.

tardis/model/parse_input.py Outdated Show resolved Hide resolved
tardis/montecarlo/montecarlo_configuration.py Outdated Show resolved Hide resolved
tardis/montecarlo/montecarlo_numba/formal_integral.py Outdated Show resolved Hide resolved
@@ -0,0 +1,334 @@
import warnings
Copy link
Member

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.

Copy link
Contributor

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 = {
Copy link
Contributor

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?

Copy link
Member Author

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.

@wkerzendorf
Copy link
Member Author

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.

thanks - that is the plan 😄

@tardis-bot
Copy link
Contributor

tardis-bot commented Jan 8, 2024

*beep* *bop*

Hi, human.

The docs workflow has succeeded ✔️

Click here to see your results.

@andrewfullard andrewfullard force-pushed the restructure/separate_transport_state branch from 64e2b0c to ca18310 Compare January 17, 2024 22:31
Copy link

codecov bot commented Jan 19, 2024

Codecov Report

Attention: 98 lines in your changes are missing coverage. Please review.

Comparison is base (3dfcb52) 68.46% compared to head (b9b1772) 68.63%.
Report is 1 commits behind head on master.

Files Patch % Lines
.../montecarlo/montecarlo_numba/packet_collections.py 25.42% 44 Missing ⚠️
tardis/montecarlo/montecarlo_numba/base.py 25.92% 20 Missing ⚠️
tardis/montecarlo/tests/test_montecarlo.py 0.00% 9 Missing ⚠️
tardis/montecarlo/montecarlo_numba/vpacket.py 0.00% 8 Missing ⚠️
.../montecarlo/montecarlo_numba/single_packet_loop.py 0.00% 6 Missing ⚠️
tardis/montecarlo/montecarlo_numba/interaction.py 0.00% 4 Missing ⚠️
tardis/montecarlo/montecarlo_configuration.py 90.90% 3 Missing ⚠️
tardis/model/parse_input.py 66.66% 1 Missing ⚠️
tardis/montecarlo/base.py 98.00% 1 Missing ⚠️
tardis/montecarlo/montecarlo_transport_state.py 97.95% 1 Missing ⚠️
... and 1 more
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.
📢 Have feedback on the report? Share it here.

Now located in the MCTState. Tests are still failing!
Spectra and scalars need a different testing method, out of scope for this PR.
@tardis-bot
Copy link
Contributor

*beep* *bop*
Hi human,
I ran benchmarks as you asked comparing master (3dfcb52) and the latest commit (b9b1772).
Here are the logs produced by ASV.
Results can also be downloaded as artifacts here.
Significantly changed benchmarks:

· No results found

All benchmarks:

· No results found

@andrewfullard andrewfullard merged commit 17c5da9 into tardis-sn:master Jan 22, 2024
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants