You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug fix error reporting when wrong lattice element was passed.
File "/operation/common/miniconda/envs/jlp-py312/lib/python3.12/site-packages/pyaml/lattice/simulator.py", line 427, in get_at_elems
raise PyAMLException(f"{name} not found in lattice:{self._cfg.lattice}")
^^^^^^^^^
AttributeError: 'Simulator' object has no attribute '_cfg'
to:
bpm_elt = self.get_at_elems(bpm)[0]
^^^^^^^^^^^^^^^^^^^^^^
File "/operation/common/miniconda/envs/jlp-py312/lib/python3.12/site-packages/pyaml/lattice/simulator.py", line 427, in get_at_elems
raise PyAMLException(f"{name} not found in lattice:{self._lattice}")
pyaml.common.exception.PyAMLException: BPM-C04-01 not found in lattice:config/sr/lattices/ebs.mat
@JeanLucPons@gupichon the smoke test is failing, I don't think this is related to this PR, so I will merge. Is this a known issue?
> raise PyAMLConfigException(message) from None
E pyaml.common.exception.PyAMLConfigException: Validation failed for class: 'pyaml_cs_oa.controlsystem.ConfigModel'.
E Field 'backend' is invalid:
E error: Extra inputs are not permitted
E got: 'EPICS'
@JeanLucPons@gupichon the smoke test is failing, I don't think this is related to this PR, so I will merge. Is this a known issue?
> raise PyAMLConfigException(message) from None
E pyaml.common.exception.PyAMLConfigException: Validation failed for class: 'pyaml_cs_oa.controlsystem.ConfigModel'.
E Field 'backend' is invalid:
E error: Extra inputs are not permitted
E got: 'EPICS'
@gubaidulinvadim@gupichon
No this is link to my previous comment, that dt4acc is using BESSY2 example in pyaml directory.
It should use example working with fixed backend release.
@JeanLucPons@gupichon the smoke test is failing, I don't think this is related to this PR, so I will merge. Is this a known issue?
> raise PyAMLConfigException(message) from None
E pyaml.common.exception.PyAMLConfigException: Validation failed for class: 'pyaml_cs_oa.controlsystem.ConfigModel'.
E Field 'backend' is invalid:
E error: Extra inputs are not permitted
E got: 'EPICS'
@gubaidulinvadim@gupichon No this is link to my previous comment, that dt4acc is using BESSY2 example in pyaml directory. It should use example working with fixed backend release.
There should be no pyaml_cs_oa.controlsystem.ConfigModel anymore in the latest release. So maybe it is just using an old release and the version can now be updated?
@TeresiaOlsson
A ._cfg was still there is pyaml simulator. No problem, for the moment, with pyaml-cs-oa.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This bug fix error reporting when wrong lattice element was passed.
to: