tardis-sn / stardis

TARDIS stellar radiative transfer
https://tardis-sn.github.io/stardis/
11 stars 15 forks source link

remove alpha_electron for loop #163

Closed jvshields closed 10 months ago

jvshields commented 10 months ago

Small pr to rectify a small inefficiency I came across in the code.

This just changes a bulky for loop to use a more efficient numpy implementation.

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (68b5e52) 68.15% compared to head (fd94363) 68.09%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #163 +/- ## ========================================== - Coverage 68.15% 68.09% -0.06% ========================================== Files 31 31 Lines 1165 1163 -2 ========================================== - Hits 794 792 -2 Misses 371 371 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.