Skip to content

Commit

Permalink
Apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfullard committed Oct 1, 2024
1 parent 8d06f9b commit c4d365a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
14 changes: 9 additions & 5 deletions tardis/workflows/simple_tardis_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,12 @@ def get_convergence_estimates(self, transport_state):
)
)

estimated_t_radiative = estimated_radfield_properties.dilute_blackbody_radiationfield_state.temperature
estimated_dilution_factor = estimated_radfield_properties.dilute_blackbody_radiationfield_state.dilution_factor
estimated_t_radiative = (

Check warning on line 164 in tardis/workflows/simple_tardis_workflow.py

View check run for this annotation

Codecov / codecov/patch

tardis/workflows/simple_tardis_workflow.py#L164

Added line #L164 was not covered by tests
estimated_radfield_properties.dilute_blackbody_radiationfield_state.temperature
)
estimated_dilution_factor = (

Check warning on line 167 in tardis/workflows/simple_tardis_workflow.py

View check run for this annotation

Codecov / codecov/patch

tardis/workflows/simple_tardis_workflow.py#L167

Added line #L167 was not covered by tests
estimated_radfield_properties.dilute_blackbody_radiationfield_state.dilution_factor
)

emitted_luminosity = calculate_filtered_luminosity(

Check warning on line 171 in tardis/workflows/simple_tardis_workflow.py

View check run for this annotation

Codecov / codecov/patch

tardis/workflows/simple_tardis_workflow.py#L171

Added line #L171 was not covered by tests
transport_state.emitted_packet_nu,
Expand Down Expand Up @@ -380,9 +384,9 @@ def initialize_spectrum_solver(
self.spectrum_solver.transport_state = transport_state

Check warning on line 384 in tardis/workflows/simple_tardis_workflow.py

View check run for this annotation

Codecov / codecov/patch

tardis/workflows/simple_tardis_workflow.py#L384

Added line #L384 was not covered by tests

if virtual_packet_energies is not None:
self.spectrum_solver._montecarlo_virtual_luminosity.value[:] = (
virtual_packet_energies
)
self.spectrum_solver._montecarlo_virtual_luminosity.value[

Check warning on line 387 in tardis/workflows/simple_tardis_workflow.py

View check run for this annotation

Codecov / codecov/patch

tardis/workflows/simple_tardis_workflow.py#L386-L387

Added lines #L386 - L387 were not covered by tests
:
] = virtual_packet_energies

if self.integrated_spectrum_settings is not None:

Check warning on line 391 in tardis/workflows/simple_tardis_workflow.py

View check run for this annotation

Codecov / codecov/patch

tardis/workflows/simple_tardis_workflow.py#L391

Added line #L391 was not covered by tests
# Set up spectrum solver integrator
Expand Down
8 changes: 6 additions & 2 deletions tardis/workflows/standard_tardis_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,12 @@ def get_convergence_estimates(self, transport_state):
)
)

estimated_t_radiative = estimated_radfield_properties.dilute_blackbody_radiationfield_state.temperature
estimated_dilution_factor = estimated_radfield_properties.dilute_blackbody_radiationfield_state.dilution_factor
estimated_t_radiative = (

Check warning on line 133 in tardis/workflows/standard_tardis_workflow.py

View check run for this annotation

Codecov / codecov/patch

tardis/workflows/standard_tardis_workflow.py#L133

Added line #L133 was not covered by tests
estimated_radfield_properties.dilute_blackbody_radiationfield_state.temperature
)
estimated_dilution_factor = (

Check warning on line 136 in tardis/workflows/standard_tardis_workflow.py

View check run for this annotation

Codecov / codecov/patch

tardis/workflows/standard_tardis_workflow.py#L136

Added line #L136 was not covered by tests
estimated_radfield_properties.dilute_blackbody_radiationfield_state.dilution_factor
)

emitted_luminosity = calculate_filtered_luminosity(

Check warning on line 140 in tardis/workflows/standard_tardis_workflow.py

View check run for this annotation

Codecov / codecov/patch

tardis/workflows/standard_tardis_workflow.py#L140

Added line #L140 was not covered by tests
transport_state.emitted_packet_nu,
Expand Down

0 comments on commit c4d365a

Please sign in to comment.