Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
pip install scipy
pip install pydantic
pip install accelerator-toolbox
pip install accelerator-commissioning
pip install matplotlib
pip install h5py
pip install PyYaml
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "pyaml/external/pySC"]
path = pyaml/external/pySC
url = https://github.com/kparasch/pySC.git
1 change: 0 additions & 1 deletion pyaml/external/pySC
Submodule pySC deleted from f509fe
2 changes: 1 addition & 1 deletion pyaml/tuning_tools/dispersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from typing import List, Optional

from pydantic import BaseModel, ConfigDict
from pySC.apps import measure_dispersion

from ..common.element_holder import ElementHolder
from ..external.pySC.pySC.apps import measure_dispersion
from ..external.pySC_interface import pySCInterface

logger = logging.getLogger(__name__)
Expand Down
6 changes: 3 additions & 3 deletions pyaml/tuning_tools/orbit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@

if TYPE_CHECKING:
from ..common.element_holder import ElementHolder
# from ..external.pySC.pySC import ResponseMatrix as pySC_ResponseMatrix
from pySC import ResponseMatrix as pySC_ResponseMatrix
from pySC.apps import orbit_correction

from ..arrays.magnet_array import MagnetArray
from ..common.element import Element, ElementConfigModel
from ..common.exception import PyAMLException
from ..configuration.factory import Factory
from ..configuration.fileloader import get_path, load
from ..external.pySC.pySC import ResponseMatrix as pySC_ResponseMatrix
from ..external.pySC.pySC.apps import orbit_correction
from ..external.pySC_interface import pySCInterface
from .response_matrix import ResponseMatrix

Expand Down
6 changes: 3 additions & 3 deletions pyaml/tuning_tools/orbit_response_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
from pathlib import Path
from typing import List, Optional

import pySC
from pydantic import BaseModel, ConfigDict
from pySC.apps import measure_ORM
from pySC.apps.codes import ResponseCode

from ..common.element_holder import ElementHolder
from ..common.exception import PyAMLException
from ..external.pySC import pySC
from ..external.pySC.pySC.apps import measure_ORM
from ..external.pySC.pySC.apps.codes import ResponseCode
from ..external.pySC_interface import pySCInterface

logger = logging.getLogger(__name__)
Expand Down
5 changes: 0 additions & 5 deletions pyaml/tuning_tools/response_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,3 @@ class ConfigModel(BaseModel):
class ResponseMatrix(object):
def __init__(self, cfg: ConfigModel):
self._cfg = cfg

# self.matrix = cfg.matrix
# self.input_names = cfg.input_names
# self.output_names = cfg.output_names
# self.rf_response = cfg.rf_response
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ dependencies = [
"accelerator-toolbox>=0.6.1",
"PyYAML>=6.0.2",
"pydantic>=2.11.7",
"accelerator-commissioning==0.4.0", #pySC
"h5py",
"matplotlib"
]
Expand Down
Loading