Skip to content

Commit

Permalink
Remove plasma atomic data variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfullard committed Nov 18, 2024
1 parent adc8d70 commit 932f61e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tardis/opacities/opacity_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,20 @@ def legacy_solve(self, plasma) -> OpacityState:
-------
OpacityState
"""
atomic_data = plasma.atomic_data

if self.disable_line_scattering:
tau_sobolev = pd.DataFrame(
np.zeros(
(
atomic_data.lines.shape[0], # number of lines
plasma.atomic_data.lines.shape[0], # number of lines
plasma.number_density.shape[1], # number of shells
),
dtype=np.float64,
),
index=atomic_data.lines.index,
index=plasma.atomic_data.lines.index,
)
else:
tau_sobolev = calculate_sobolev_line_opacity(
atomic_data.lines,
plasma.atomic_data.lines,
plasma.level_number_density,
plasma.time_explosion,
plasma.stimulated_emission_factor,
Expand Down

0 comments on commit 932f61e

Please sign in to comment.