Closed jvshields closed 9 months ago
Attention: 7 lines
in your changes are missing coverage. Please review.
Comparison is base (
6ff02fe
) 68.39% compared to head (a50b226
) 67.72%.
Files | Patch % | Lines |
---|---|---|
...on_field/opacities/opacities_solvers/broadening.py | 50.00% | 7 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
*beep* *bop* Hi human, I ran benchmarks as you asked comparing main (6ff02fec7dc8e973420adc82e7df61518a4fef56) and the latest commit (a50b226a031f2ca3c713ebc83e98b5bcb58528a2). Here are the logs produced by ASV. Results can also be downloaded as artifacts here. Significantly changed benchmarks:
All benchmarks:
The broadening calculation needed a lot of cleaning. This is the beginning of that cleaning/speedup. A large portion of the PR is getting rid of things being saved to variables and then immediately used in functions, or things being returned by functions for no reason, or things being converted to numpy arrays from dataframes and then being accessed in odd ways that make far more sense to be located directly in the dataframes.
Another part of the pr is getting rid of the nested for loop inside the function. The calculations are now done with appropriate array broadcasting.