Skip to content

Commit

Permalink
Fix init bug for: line_interaction_type=scatter
Browse files Browse the repository at this point in the history
  • Loading branch information
roee yaron authored and roee yaron committed Feb 20, 2025
1 parent cec8b53 commit b755ac5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tardis/simulation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,10 @@ def iterate(self, no_of_packets, no_of_virtual_packets=0):
logger.info(
f"\n\tStarting iteration {(self.iterations_executed + 1):d} of {self.iterations:d}"
)

if self.macro_atom is None:
self.plasma.beta_sobolev = None
macro_atom_state = None

Check warning on line 450 in tardis/simulation/base.py

View check run for this annotation

Codecov / codecov/patch

tardis/simulation/base.py#L449-L450

Added lines #L449 - L450 were not covered by tests

opacity_state = self.opacity.legacy_solve(self.plasma)
if self.macro_atom is not None:
Expand Down

0 comments on commit b755ac5

Please sign in to comment.