Skip to content

Commit

Permalink
add explanatory comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshields committed Feb 12, 2024
1 parent 0141f23 commit 93bdb3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stardis/radiation_field/opacities/opacities_solvers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,6 @@ def calc_alpha_line_at_nu(
)

#If there is a broadening range, first make sure the range is in frequency units, and then iterate through each frequency to calculate the contribution of each line within the broadening range.

else: # This if statement block appropriately handles if the broadening range is in frequency or wavelength units.
h_lines_indicies = (lines_sorted.atomic_number == 1).to_numpy() #Hydrogen lines are much broader than other lines, so they need special treatment to ignore the broadening range.
if line_range.unit.physical_type == "length":
Expand All @@ -471,7 +470,8 @@ def calc_alpha_line_at_nu(
raise ValueError(
"Broadening range must be in units of length or frequency."
)


#Iterate through each frequency to calculate the contribution of each line within the broadening range.
for i, nu in enumerate(tracing_nus):
delta_nus = nu.value - line_nus

Expand Down

0 comments on commit 93bdb3e

Please sign in to comment.