Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dagghe committed Feb 17, 2024
1 parent 610568c commit 860fe57
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pyoma2/functions/SSI_funct.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

# =============================================================================
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 860fe57

Please sign in to comment.