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] restructure the Radiationfields #2613

Merged

Conversation

wkerzendorf
Copy link
Member

@wkerzendorf wkerzendorf commented May 10, 2024

Have to merge #2609

@andrewfullard andrewfullard self-requested a review May 13, 2024 13:57
@Knights-Templars Knights-Templars marked this pull request as draft May 13, 2024 14:17
@Knights-Templars Knights-Templars marked this pull request as draft May 13, 2024 14:17
@wkerzendorf wkerzendorf changed the title Restructure the Radiationfields throughout TARDIS [Restructure/plasma] restructure the Radiationfields throughout TARDIS Jun 19, 2024
@wkerzendorf wkerzendorf changed the title [Restructure/plasma] restructure the Radiationfields throughout TARDIS [Restructure/plasma] restructure the Radiationfields Jun 19, 2024
@wkerzendorf wkerzendorf marked this pull request as ready for review June 21, 2024 15:11
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.

Few changes needed. Also rebase/merge master in

astropy_helpers Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete this

Copy link
Contributor

Choose a reason for hiding this comment

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

These notebooks are good but not referenced in any contents file

tardis/model/parse_input.py Outdated Show resolved Hide resolved
test.txt Outdated Show resolved Hide resolved
astropy_helpers Outdated Show resolved Hide resolved
test.txt Outdated Show resolved Hide resolved
Refactor the `parse_radiation_field_configuration.py` module to improve code organization and readability. Update the import statements to reflect the changes in the module structure. Replace the deprecated `DiluteBlackBodyRadiationFieldState` class with the new `DilutePlanckianRadiationField` class from the `tardis.plasma.radiation_field` module. This change ensures consistency and compatibility with the latest codebase.

Also, update the `tardis/simulation/base.py` module to import the `DilutePlanckianRadiationField` class from the `tardis.plasma.radiation_field` module. This change ensures that the correct class is used for creating the radiation field in the simulation.
Copy link

codecov bot commented Jul 23, 2024

Codecov Report

Attention: Patch coverage is 26.53061% with 72 lines in your changes missing coverage. Please review.

Project coverage is 36.50%. Comparing base (38a35c3) to head (9800fc8).

Files Patch % Lines
tardis/plasma/nlte/nlte_data.py 0.00% 57 Missing ⚠️
tardis/plasma/radiation_field/planck_rad_field.py 44.44% 5 Missing ⚠️
...is/io/model/parse_radiation_field_configuration.py 33.33% 2 Missing ⚠️
tardis/model/base.py 0.00% 2 Missing ⚠️
tardis/plasma/properties/plasma_input.py 75.00% 2 Missing ⚠️
tardis/plasma/properties/base.py 85.71% 1 Missing ⚠️
tardis/plasma/standard_plasmas.py 50.00% 1 Missing ⚠️
tardis/simulation/base.py 75.00% 1 Missing ⚠️
...ntecarlo/estimators/dilute_blackbody_properties.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2613      +/-   ##
==========================================
- Coverage   36.58%   36.50%   -0.08%     
==========================================
  Files         186      186              
  Lines       14859    14922      +63     
==========================================
+ Hits         5436     5448      +12     
- Misses       9423     9474      +51     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wkerzendorf wkerzendorf requested a review from Rodot- July 24, 2024 16:07
Rodot-
Rodot- previously approved these changes Jul 24, 2024
tardis/plasma/properties/plasma_input.py Show resolved Hide resolved
tardis/plasma/properties/plasma_input.py Show resolved Hide resolved
Rodot-
Rodot- previously approved these changes Jul 24, 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.

Everything looks good!

@andrewfullard andrewfullard self-requested a review July 24, 2024 20:12
andrewfullard
andrewfullard previously approved these changes Jul 24, 2024
@andrewfullard
Copy link
Contributor

Just need to run black please

@wkerzendorf wkerzendorf dismissed stale reviews from andrewfullard and Rodot- via 9800fc8 July 24, 2024 20:37
@wkerzendorf wkerzendorf merged commit b7eb16b into tardis-sn:master Jul 24, 2024
13 of 15 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