Skip to content

Commit

Permalink
remove for alpha_electron for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshields committed Feb 1, 2024
1 parent 68b5e52 commit fd94363
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stardis/radiation_field/opacities/opacities_solvers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ def calc_alpha_electron(
const.sigma_T.cgs.value * stellar_plasma.electron_densities.values
)

alpha_electron = np.zeros((stellar_model.no_of_depth_points, len(tracing_nus)))
for j in range(stellar_model.no_of_depth_points):
alpha_electron[j] = alpha_electron_by_depth_point[j]
alpha_electron = np.repeat(
alpha_electron_by_depth_point[:, np.newaxis], len(tracing_nus), axis=1
)

return alpha_electron

Expand Down

0 comments on commit fd94363

Please sign in to comment.