Skip to content

Commit

Permalink
Should fix the path problem in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lmalina committed Jan 22, 2024
1 parent cedcc74 commit 082d4db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_loco.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import at
import numpy as np
import pytest
from pathlib import Path
from pySC.core.simulated_commissioning import SimulatedCommissioning
from pySC.utils.sc_tools import SCgetOrds
from pySC.utils import logging_tools
from pySC.correction import loco
from pySC.lattice_properties.response_model import SCgetModelRM, SCgetModelDispersion

LOGGER = logging_tools.get_logger(__name__)
INPUTS = Path(__file__).parent / "inputs"


def test_loco_hmba(at_ring):
Expand Down Expand Up @@ -88,7 +90,7 @@ def test_loco_hmba(at_ring):

@pytest.fixture
def at_ring():
ring = at.load_mat('inputs/hmba.mat')
ring = at.load_mat(f'{INPUTS}/hmba.mat')
bpm_indexes = at.get_refpts(ring, at.elements.Monitor)
for bpm_index in reversed(bpm_indexes):
corrector = at.elements.Corrector(f'CXY{bpm_index}', length=0, kick_angle=[0, 0], PolynomA=[0, 0],
Expand Down

0 comments on commit 082d4db

Please sign in to comment.