From 8a3c990ade5ee84563f61e67e1a7eee59adbc2c5 Mon Sep 17 00:00:00 2001 From: Ken MacDonald Date: Tue, 7 May 2024 15:51:48 -0400 Subject: [PATCH] Updating the use of the C code to be able to be selected programmatically, but the python code is chosen by default. --- src/stcal/ramp_fitting/ols_fit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stcal/ramp_fitting/ols_fit.py b/src/stcal/ramp_fitting/ols_fit.py index 11ff66a5..24af2915 100644 --- a/src/stcal/ramp_fitting/ols_fit.py +++ b/src/stcal/ramp_fitting/ols_fit.py @@ -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()