Open braingram opened 1 year ago
the link in the discussion is not pinned to a specific commit, so the line numbers have changed since original posting: https://github.com/spacetelescope/stcal/blob/3fa4d42183fb384166d51f1aca8dd7bbe0ca6603/src/stcal/ramp_fitting/ols_fit.py#L1897-L1900
This can likely be closed since there is now a c version (and the python version will likely be removed).
I'm leaving it open for now but if anyone feels like it should be closed feel free to close it.
https://github.com/spacetelescope/stcal/blob/main/src/stcal/ramp_fitting/ols_fit.py#L1657-L1658
These appear to be iterating through pixels. Is there a way to convert this to a vector operation or some other optimization?
Here is a plot of the time taken to run
ols_ramp_fit_single
generated with snakeviz (note the 40% number was calculated using line_profiler as snakeviz times don't always make sense, note thatcalc_slope
contains a block forcalc_slope
with an equal measurement of time).