From 7d80f50630afac08182b34fc0246b3d766539e69 Mon Sep 17 00:00:00 2001 From: Ximenes Rocha Resende Date: Thu, 30 Oct 2025 10:44:54 -0300 Subject: [PATCH] Substitute flatten function from lnls to mathphys --- pymodels/SI_V25_04/lattice.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pymodels/SI_V25_04/lattice.py b/pymodels/SI_V25_04/lattice.py index 9b7b22b..b4d19ab 100644 --- a/pymodels/SI_V25_04/lattice.py +++ b/pymodels/SI_V25_04/lattice.py @@ -5,7 +5,6 @@ import math as _math -import lnls as _lnls import mathphys as _mp from pyaccel import accelerator as _pyacc_acc, elements as _pyacc_ele, \ lattice as _pyacc_lat @@ -626,7 +625,7 @@ def create_lattice( anel = [S01, S02, S03, S04, S05, S06, S07, S08, S09, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19, S20] - anel = _lnls.utils.flatten(anel) + anel = _mp.functions.flatten(anel) the_ring = _pyacc_lat.build(anel)