Skip to content

Commit

Permalink
small fix removing useless np array declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshields committed Dec 4, 2024
1 parent debf28d commit ad78b14
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stardis/radiation_field/opacities/opacities_solvers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,7 @@ def calc_alan_entries(
line_index, depth_point_index
] # Scale by alpha of the line
) / d_nu
line_broadening_range = np.array(
[10, line_broadening]
).max() # This is a placeholder
line_broadening_range = max(10.0, line_broadening) # This is a placeholder

lower_freq_index = max(
closest_frequency_index - int(line_broadening_range), 0
Expand Down

0 comments on commit ad78b14

Please sign in to comment.