Skip to content

Commit

Permalink
Use the correct radiation_field_state attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfullard committed Aug 15, 2024
1 parent 41e8f32 commit 8b3ad36
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tardis/simulation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,8 @@ def advance_state(self, emitted_luminosity):
-------
converged : bool
"""
current_radiation_field_state = DilutePlanckianRadiationField(
self.simulation_state.t_radiative,
self.simulation_state.dilution_factor,
current_radiation_field_state = (
self.simulation_state.radiation_field_state
)

estimated_radfield_properties = (
Expand Down Expand Up @@ -351,8 +350,7 @@ def advance_state(self, emitted_luminosity):
next_dilution_factor,
next_t_inner,
)
self.simulation_state.t_radiative = next_t_radiative
self.simulation_state.dilution_factor = next_dilution_factor
self.simulation_state.radiation_field_state = next_radiation_field_state
self.simulation_state.blackbody_packet_source.temperature = next_t_inner

update_properties = dict(
Expand Down

0 comments on commit 8b3ad36

Please sign in to comment.