Skip to content

Commit

Permalink
apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshields committed Dec 4, 2024
1 parent ad78b14 commit 6efd6d5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions stardis/radiation_field/opacities/opacities_solvers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,13 +560,13 @@ def calc_alan_entries(

delta_nus = tracing_nus_values[lower_freq_index:upper_freq_index] - line_nu

alpha_line_at_nu[depth_point_index, lower_freq_index:upper_freq_index] += (
_calc_alan_entries(
delta_nus,
doppler_widths[line_index, depth_point_index],
line_gamma,
alphas_array[line_index, depth_point_index],
)
alpha_line_at_nu[
depth_point_index, lower_freq_index:upper_freq_index
] += _calc_alan_entries(
delta_nus,
doppler_widths[line_index, depth_point_index],
line_gamma,
alphas_array[line_index, depth_point_index],
)
return alpha_line_at_nu

Expand Down Expand Up @@ -684,9 +684,9 @@ def calc_alphas(
stellar_radiation_field.frequencies,
opacity_config.line,
)
stellar_radiation_field.opacities.opacities_dict["alpha_line_at_nu"] = (
alpha_line_at_nu
)
stellar_radiation_field.opacities.opacities_dict[
"alpha_line_at_nu"
] = alpha_line_at_nu
stellar_radiation_field.opacities.opacities_dict["alpha_line_at_nu_gammas"] = gammas
stellar_radiation_field.opacities.opacities_dict[
"alpha_line_at_nu_doppler_widths"
Expand Down

0 comments on commit 6efd6d5

Please sign in to comment.