-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates to PVPostionerSoftDone #1005
Updates to PVPostionerSoftDone #1005
Conversation
2M & 4M undulators @MDecarabas Thanks!
916 pv positioner soft done update
I'm looking at PR #984 (April 2024) which has other changes for |
@prjemian: Could you look at this PR before merging the other one? This is actually modifying the 916-PVPositionerSoftDone-update brach. We could chat about it in tomorrow's meeting. |
@@ -98,7 +98,7 @@ jobs: | |||
strategy: | |||
matrix: | |||
python-version: | |||
- "3.8" | |||
# - "3.8" # TODO: Breaking |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're really close to EOL for Py3.8. This would push the entire repo to drop it. What breaks for Py3.8 now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I came across this import error.
Py3.8 build failed with this message:==================================== ERRORS ====================================
_______ ERROR collecting apstools/callbacks/tests/test_440_specwriter.py _______
ImportError while importing test module '/home/runner/work/apstools/apstools/apstools/callbacks/tests/test_440_specwriter.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../micromamba/envs/anaconda-test-env-py-3.8/lib/python3.8/site-packages/_pytest/python.py:493: in importtestmodule
mod = import_path(
../../../micromamba/envs/anaconda-test-env-py-3.8/lib/python3.8/site-packages/_pytest/pathlib.py:582: in import_path
importlib.import_module(module_name)
../../../micromamba/envs/anaconda-test-env-py-3.8/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
???
<frozen importlib._bootstrap>:991: in _find_and_load
???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
???
<frozen importlib._bootstrap>:1014: in _gcd_import
???
<frozen importlib._bootstrap>:991: in _find_and_load
???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
???
<frozen importlib._bootstrap>:1014: in _gcd_import
???
<frozen importlib._bootstrap>:991: in _find_and_load
???
<frozen importlib._bootstrap>:961: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
???
<frozen importlib._bootstrap>:1014: in _gcd_import
???
<frozen importlib._bootstrap>:991: in _find_and_load
???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:671: in _load_unlocked
???
<frozen importlib._bootstrap_external>:843: in exec_module
???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
???
apstools/__init__.py:6: in <module>
from setuptools_scm import get_version
../../../micromamba/envs/anaconda-test-env-py-3.8/lib/python3.8/site-packages/setuptools_scm/__init__.py:8: in <module>
from ._config import DEFAULT_LOCAL_SCHEME
../../../micromamba/envs/anaconda-test-env-py-3.8/lib/python3.8/site-packages/setuptools_scm/_config.py:17: in <module>
from ._integration.pyproject_reading import (
../../../micromamba/envs/anaconda-test-env-py-3.8/lib/python3.8/site-packages/setuptools_scm/_integration/pyproject_reading.py:9: in <module>
from .setuptools import read_dist_name_from_setup_cfg
../../../micromamba/envs/anaconda-test-env-py-3.8/lib/python3.8/site-packages/setuptools_scm/_integration/setuptools.py:10: in <module>
import setuptools
../../../micromamba/envs/anaconda-test-env-py-3.8/lib/python3.8/site-packages/setuptools/__init__.py:21: in <module>
from .dist import Distribution
../../../micromamba/envs/anaconda-test-env-py-3.8/lib/python3.8/site-packages/setuptools/dist.py:29: in <module>
from . import _entry_points
../../../micromamba/envs/anaconda-test-env-py-3.8/lib/python3.8/site-packages/setuptools/_entry_points.py:6: in <module>
from jaraco.text import yield_lines
../../../micromamba/envs/anaconda-test-env-py-3.8/lib/python3.8/site-packages/setuptools/_vendor/jaraco/text/__init__.py:12: in <module>
from jaraco.context import ExceptionTrap
../../../micromamba/envs/anaconda-test-env-py-3.8/lib/python3.8/site-packages/setuptools/_vendor/jaraco/context.py:17: in <module>
from backports import tarfile
E ImportError: cannot import name 'tarfile' from 'backports' (/home/runner/micromamba/envs/anaconda-test-env-py-3.8/lib/python3.8/site-packages/backports/__init__.py)
=========================== short test summary info ============================
ERROR apstools/callbacks/tests/test_440_specwriter.py
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.[23](https://github.com/gfabbris/apstools/actions/runs/10044498274/job/27760058119#step:15:24)s =============================== |
@gfabbris Looks like there are changes in |
Is that easier? It would help me to catch up. |
It seems to me that it is easier, and, maybe more importantly, safer. |
Main proposed changes:
setpoint
andreadback
as normalEpicsSignal
. But now, changes to thesetpoint
are sent to thetarget
through a subscription.done
signal to beFalse
when the device is moved.use_target
toFalse
. There is one disadvantage of using thetarget
signal: if you change the setpoint "manually" in EPICS (and the device moves to the new setpoint), the Bluesky device will not know that it isinposition
becausetarget
was not updated. Therefore, I recommend to set use_target=True only when EPICS changes the setpoint value while ramping (like in the Lakeshore 340).