Skip to content
Open
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
4 changes: 2 additions & 2 deletions examples/ESRF_tune_example/esrf_tune_example_no_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
from pyaml.arrays.magnet import ConfigModel as MagnetArrayConfigModel
from pyaml.arrays.magnet import Magnet
from pyaml.configuration import set_root_folder
from pyaml.configuration.csvcurve import ConfigModel as CSVCureveConfig
from pyaml.configuration.csvcurve import CSVCurve
from pyaml.lattice.simulator import ConfigModel as SimulatorConfigModel
from pyaml.lattice.simulator import Simulator
from pyaml.magnet.csvcurve import ConfigModel as CSVCureveConfig
from pyaml.magnet.csvcurve import CSVCurve
from pyaml.magnet.linear_model import (
ConfigModel as LinearMagnetModelConfig,
)
Expand Down
14 changes: 7 additions & 7 deletions pyaml/apidoc/gen_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
"pyaml.common.element",
"pyaml.common.element_holder",
"pyaml.common.exception",
"pyaml.configuration.csvcurve",
"pyaml.configuration.csvmatrix",
"pyaml.configuration.curve",
"pyaml.magnet.csvcurve",
"pyaml.magnet.csvmatrix",
"pyaml.magnet.curve",
"pyaml.configuration.factory",
"pyaml.configuration.fileloader",
"pyaml.configuration.inline_curve",
"pyaml.configuration.inline_matrix",
"pyaml.magnet.inline_curve",
"pyaml.magnet.inline_matrix",
"pyaml.configuration.manager",
"pyaml.configuration.matrix",
"pyaml.magnet.matrix",
"pyaml.control.abstract_impl",
"pyaml.control.controlsystem",
"pyaml.control.deviceaccess",
Expand Down Expand Up @@ -126,7 +126,7 @@ def generate_selective_module(m):
if m in ["pyaml.arrays.element_array"]:
# Include special members for operator overloading
file.write(" :special-members: __add__, __and__, __or__, __sub__ \n")
if m in ["pyaml.yellow_pages", "pyaml.configuration.manager"]:
if m in ["pyaml.yellow_pages", "pyaml.magnet.manager"]:
# Include special members for exploratory overloading
file.write(" :special-members: __dir__, __getattr__, __getitem__, __repr__, __str__ \n")
file.write(" :exclude-members: model_config\n")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pyaml/magnet/linear_cfm_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

from ..common.element import __pyaml_repr__
from ..common.exception import PyAMLException
from ..configuration.curve import Curve
from ..configuration.matrix import Matrix
from ..control.deviceaccess import DeviceAccess
from .curve import Curve
from .matrix import Matrix
from .model import MagnetModel

# Define the main class name for this module
Expand Down
2 changes: 1 addition & 1 deletion pyaml/magnet/linear_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from pydantic import BaseModel, ConfigDict

from ..common.element import __pyaml_repr__
from ..configuration.curve import Curve
from ..control.deviceaccess import DeviceAccess
from .curve import Curve
from .model import MagnetModel

# Define the main class name for this module
Expand Down
8 changes: 4 additions & 4 deletions pyaml/magnet/linear_serialized_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

from ..common.element import __pyaml_repr__
from ..common.exception import PyAMLException
from ..configuration.curve import Curve
from ..configuration.inline_curve import ConfigModel as InlineCurveModel
from ..configuration.inline_curve import InlineCurve
from ..configuration.matrix import Matrix
from ..control.deviceaccess import DeviceAccess
from .curve import Curve
from .inline_curve import ConfigModel as InlineCurveModel
from .inline_curve import InlineCurve
from .linear_model import ConfigModel as LinearConfigModel
from .linear_model import LinearMagnetModel
from .matrix import Matrix
from .model import MagnetModel

# Define the main class name for this module
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pyaml/magnet/spline_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from scipy.interpolate import make_smoothing_spline

from ..common.element import __pyaml_repr__
from ..configuration.curve import Curve
from ..control.deviceaccess import DeviceAccess
from .curve import Curve
from .model import MagnetModel

# Define the main class name for this module
Expand Down
12 changes: 6 additions & 6 deletions tests/config/EBSNames.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ devices:
calibration_factor: 1.00054
crosstalk: 1.0
curve:
type: pyaml.configuration.csvcurve
type: pyaml.magnet.csvcurve
file: sr/magnet_models/QF1_strength.csv
unit: 1/m
powerconverter:
Expand All @@ -34,7 +34,7 @@ devices:
calibration_factor: 1.00054
crosstalk: 1.0
curve:
type: pyaml.configuration.csvcurve
type: pyaml.magnet.csvcurve
file: sr/magnet_models/QF1_strength.csv
unit: 1/m
powerconverter:
Expand All @@ -49,7 +49,7 @@ devices:
calibration_factor: 0.996841
crosstalk: 1.0
curve:
type: pyaml.configuration.csvcurve
type: pyaml.magnet.csvcurve
file: sr/magnet_models/QF1_strength.csv
unit: 1/m
powerconverter:
Expand All @@ -64,7 +64,7 @@ devices:
calibration_factor: 1.00191
crosstalk: 1.0
curve:
type: pyaml.configuration.csvcurve
type: pyaml.magnet.csvcurve
file: sr/magnet_models/QF1_strength.csv
unit: 1/m
powerconverter:
Expand All @@ -79,7 +79,7 @@ devices:
calibration_factor: 1.00191
crosstalk: 1.0
curve:
type: pyaml.configuration.csvcurve
type: pyaml.magnet.csvcurve
file: sr/magnet_models/QF1_strength.csv
unit: 1/m
powerconverter:
Expand All @@ -94,7 +94,7 @@ devices:
calibration_factor: 1.00191
crosstalk: 1.0
curve:
type: pyaml.configuration.csvcurve
type: pyaml.magnet.csvcurve
file: sr/magnet_models/QF1_strength.csv
unit: 1/m
powerconverter:
Expand Down
Loading
Loading