qpv-research-group / rayflare

Open-source, integrated optical modelling of complex stacks
Other
31 stars 11 forks source link

Performance improvements (xarray and RT loop) #70

Closed phoebe-p closed 1 week ago

phoebe-p commented 2 weeks ago

Performance improvements by loading lookup tables (xarrays) explicitly at each wavelength when raytracing, which makes looking up values much faster. Also put some things which are the same for each incidence angle/position the same outside single_ray_stack to avoid recalculating them every time.

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 97.77778% with 1 line in your changes missing coverage. Please review.

Project coverage is 93.14%. Comparing base (38c1eeb) to head (484344e).

Files Patch % Lines
rayflare/ray_tracing/rt.py 97.77% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## devel #70 +/- ## ========================================== - Coverage 93.18% 93.14% -0.04% ========================================== Files 20 20 Lines 3036 3033 -3 ========================================== - Hits 2829 2825 -4 - Misses 207 208 +1 ```

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