From 860fe573fdeeac33a0e63c43dd33c07b0d061b5a Mon Sep 17 00:00:00 2001 From: Dag Date: Sat, 17 Feb 2024 20:54:47 +0100 Subject: [PATCH] fix --- src/pyoma2/functions/SSI_funct.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pyoma2/functions/SSI_funct.py b/src/pyoma2/functions/SSI_funct.py index 27d4581..cc5298d 100644 --- a/src/pyoma2/functions/SSI_funct.py +++ b/src/pyoma2/functions/SSI_funct.py @@ -8,9 +8,10 @@ import logging import numpy as np -from Gen_funct import MAC from tqdm import tqdm, trange +from . import Gen_funct as GF + logger = logging.getLogger(__name__) # ============================================================================= @@ -536,8 +537,8 @@ def Lab_stab_SSI(Fn, Sm, Ms, ordmin, ordmax, step, err_fn, err_xi, err_ms, max_x cond1 = np.abs(f_n[i] - f_n1[idx]) / f_n[i] cond2 = np.abs(xi_n[i] - xi_n1[idx]) / xi_n[i] - # cond3 = 1 - GF.MAC(phi_n[i, :], phi_n1[idx, :]) - cond3 = 1 - MAC(phi_n[i, :], phi_n1[idx, :]) + cond3 = 1 - GF.MAC(phi_n[i, :], phi_n1[idx, :]) + # cond3 = 1 - MAC(phi_n[i, :], phi_n1[idx, :]) if cond1 < err_fn and cond2 < err_xi and cond3 < err_ms: Lab[i, ii] = 7 # Stable