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/plasma] Refactor the simulation state initialization #2664

Conversation

wkerzendorf
Copy link
Member

@wkerzendorf wkerzendorf commented Jun 19, 2024

Is based on the restructure radiation field PR. #2613

…ace.py, transport_montecarlo_numba_interface.py, conftest.py, formal_integral.py, base.py, and macro_atom.py
@andrewfullard
Copy link
Contributor

My previous comment still stands I think. This is also somewhat difficult to review given it is based on another PR.

@wkerzendorf
Copy link
Member Author

@andrewfullard
Copy link
Contributor

@andrewfullard - I presume you want me to move some of these functions to io - https://github.com/tardis-sn/tardis/pull/2664/files#diff-24577c067ab859927ea5939db7af1e47be15e9b6d48c73fc8a9177ce332b0dd1 ?

Yes please. That is what they are doing, after all- reading stuff in.

@wkerzendorf
Copy link
Member Author

@andrewfullard - moved

@andrewfullard
Copy link
Contributor

Looks good- is this ready to review?

@wkerzendorf
Copy link
Member Author

Looks good- is this ready to review?

I want to say yes

andrewfullard
andrewfullard previously approved these changes Jul 25, 2024
Copy link
Contributor

@andrewfullard andrewfullard 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! Pending codestyle. I guess this makes Simulation approach the workflow in my branch.

Rodot-
Rodot- previously approved these changes Jul 25, 2024
Copy link
Contributor

@Rodot- Rodot- 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

@@ -46,7 +46,7 @@ def initialize_packet_source(packet_source, config, geometry):
return packet_source


def parse_packet_source_from_config(config, geometry, legacy_mode_enabled):
def parse_packet_source_from_config(config, geometry, enable_legacy_mode):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why make this change? Don't we usually want booleans to be in a format that reads like flag is enabled or if flag_enabled?

@wkerzendorf wkerzendorf dismissed stale reviews from Rodot- and andrewfullard via 1355971 July 25, 2024 15:01
@wkerzendorf wkerzendorf merged commit 2766edd into tardis-sn:master Jul 25, 2024
14 of 15 checks passed
@wkerzendorf wkerzendorf deleted the restructure/simulation_from_config_cleanup branch July 25, 2024 15:26
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