Skip to content

Commit

Permalink
fix inconsistent broadcasting error
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshields committed Oct 28, 2024
1 parent e882507 commit a4da85f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ def _calc_vald_vdw_unsoeld_approx(
temperature
), # This is just saying hydrogen density is 1. We multiply by hydrogen density later for all types of vdW broadening
)
return vdW * approx_gamma
return vdW[:, np.newaxis] * approx_gamma


def _calc_vald_vdW_abo(vdW, temperature, atomic_mass):
Expand Down

0 comments on commit a4da85f

Please sign in to comment.