Skip to content

Commit

Permalink
Updating the use of the C code to be able to be selected programmatic…
Browse files Browse the repository at this point in the history
…ally, but the python code is chosen by default.
  • Loading branch information
kmacdonald-stsci committed May 7, 2024
1 parent e0b1c12 commit 8a3c990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stcal/ramp_fitting/ols_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,9 @@ def ols_ramp_fit_single(ramp_data, buffsize, save_opt, readnoise_2d, gain_2d, we
opt_info : tuple
The tuple of computed optional results arrays for fitting.
"""
use_c = False
# use_c = False
# use_c = True # XXX Change to default as False
# use_c = ramp_data.dbg_run_c_code
use_c = ramp_data.dbg_run_c_code
if use_c:
c_start = time.time()

Check warning on line 668 in src/stcal/ramp_fitting/ols_fit.py

View check run for this annotation

Codecov / codecov/patch

src/stcal/ramp_fitting/ols_fit.py#L668

Added line #L668 was not covered by tests

Expand Down

0 comments on commit 8a3c990

Please sign in to comment.