From 7542812813400445d2a1911d3908540f40aa2972 Mon Sep 17 00:00:00 2001 From: Bas des Tombe Date: Wed, 19 Jul 2023 11:06:33 +0200 Subject: [PATCH] Updated situation for fix_alpha --- src/dtscalibration/datastore.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dtscalibration/datastore.py b/src/dtscalibration/datastore.py index 3d1ec5dd..281b51f2 100644 --- a/src/dtscalibration/datastore.py +++ b/src/dtscalibration/datastore.py @@ -2191,7 +2191,10 @@ def calibration_single_ended( raise ValueError("Choose a valid method") # all below require the following solution sizes - ip = ParameterIndexSingleEnded(nt, nx, nta, includes_alpha=True, includes_dalpha=False) + if fix_alpha: + ip = ParameterIndexSingleEnded(nt, nx, nta, includes_alpha=True, includes_dalpha=False) + else: + ip = ParameterIndexSingleEnded(nt, nx, nta, includes_alpha=False, includes_dalpha=True) # npar = 1 + 1 + nt + nta * nt assert p_val.size == ip.npar