-
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
add support for fb epid database in optics #848
Conversation
prjemian
commented
Apr 17, 2023
- close Add support for optics fb_epid database #847
needs tests |
CI failed on unrelated test (but recent addition): =========================== short test summary info ============================
FAILED apstools/synApps/tests/test_2slit.py::test_geometry_property[Optics2Slit2D_HV-gp:Slit1] - AssertionError: assert SlitGeometry(width=0.3, height=0.1, x=0.5, y=-0.399) == SlitGeometry(width=0.3, height=0.1, x=0.5, y=-0.4)
Matching attributes:
['width', 'height', 'x']
Differing attributes:
['y']
Drill down into differing attribute y:
y: -0.399 != -0.4
Full diff:
- SlitGeometry(width=0.3, height=0.1, x=0.5, y=-0.4)
? ^
+ SlitGeometry(width=0.3, height=0.1, x=0.5, y=-0.399)
? ^^^
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
======= 1 failed, 348 passed, 3 skipped, 8 warnings in 318.25s (0:05:18) =======
Error: Process completed with exit code 1. It's a sig figs situation. Uses |
Locally, a different test failure: (bluesky_2023_2) prjemian@zap:~/.../BCDA-APS/apstools$ pytest -vvv --lf apstools/synApps/tests/test_2slit.py
================================================================ test session starts =================================================================
platform linux -- Python 3.10.4, pytest-7.3.1, pluggy-1.0.0 -- /home/prjemian/.conda/envs/bluesky_2023_2/bin/python3.10
cachedir: .pytest_cache
rootdir: /home/prjemian/Documents/projects/BCDA-APS/apstools
configfile: pytest.ini
plugins: notebook-0.6.1, anyio-3.6.2
collected 17 items
run-last-failure: 13 known failures not in selected tests
apstools/synApps/tests/test_2slit.py::test_attribute_quantities[Optics2Slit1D-gp:Slit1H-False-read_attrs-12] PASSED [ 5%]
apstools/synApps/tests/test_2slit.py::test_attribute_quantities[Optics2Slit1D-gp:Slit1H-False-configuration_attrs-16] PASSED [ 11%]
apstools/synApps/tests/test_2slit.py::test_attribute_quantities[Optics2Slit1D-gp:Slit1H-True-read()-8] PASSED [ 17%]
apstools/synApps/tests/test_2slit.py::test_attribute_quantities[Optics2Slit1D-gp:Slit1H-True-summary()-63] PASSED [ 23%]
apstools/synApps/tests/test_2slit.py::test_attribute_quantities[Optics2Slit2D_HV-gp:Slit1-False-read_attrs-26] PASSED [ 29%]
apstools/synApps/tests/test_2slit.py::test_attribute_quantities[Optics2Slit2D_HV-gp:Slit1-False-configuration_attrs-34] PASSED [ 35%]
apstools/synApps/tests/test_2slit.py::test_attribute_quantities[Optics2Slit2D_HV-gp:Slit1-True-read()-16] PASSED [ 41%]
apstools/synApps/tests/test_2slit.py::test_attribute_quantities[Optics2Slit2D_HV-gp:Slit1-True-summary()-114] PASSED [ 47%]
apstools/synApps/tests/test_2slit.py::test_attribute_quantities[Optics2Slit2D_InbOutBotTop-gp:Slit1-False-read_attrs-24] PASSED [ 52%]
apstools/synApps/tests/test_2slit.py::test_attribute_quantities[Optics2Slit2D_InbOutBotTop-gp:Slit1-False-configuration_attrs-32] PASSED [ 58%]
apstools/synApps/tests/test_2slit.py::test_attribute_quantities[Optics2Slit2D_InbOutBotTop-gp:Slit1-True-read()-16] PASSED [ 64%]
apstools/synApps/tests/test_2slit.py::test_attribute_quantities[Optics2Slit2D_InbOutBotTop-gp:Slit1-True-summary()-112] PASSED [ 70%]
apstools/synApps/tests/test_2slit.py::test_2slit1D PASSED [ 76%]
apstools/synApps/tests/test_2slit.py::test_2slit2D_HV PASSED [ 82%]
apstools/synApps/tests/test_2slit.py::test_2slit2D_InbOutBotTop PASSED [ 88%]
apstools/synApps/tests/test_2slit.py::test_geometry_property[Optics2Slit2D_HV-gp:Slit1] PASSED [ 94%]
apstools/synApps/tests/test_2slit.py::test_geometry_property[Optics2Slit2D_InbOutBotTop-gp:Slit1] PASSED [100%]
================================================================= 17 passed in 7.56s =================================================================
Subscription value callback exception (EpicsSignal(read_pv='gp:Slit1Hsize', name='obj_size_setpoint', parent='obj_size', value=0.30000000000000004, timestamp=1684260304.479151, tolerance=0.001, auto_monitor=False, string=False, write_pv='gp:Slit1Hsize', limits=False, put_complete=True))
Traceback (most recent call last):
File "/home/prjemian/.conda/envs/bluesky_2023_2/lib/python3.10/site-packages/ophyd/ophydobj.py", line 492, in inner
cb(*args, **kwargs)
File "/home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/devices/positioner_soft_done.py", line 191, in cb_setpoint
logger.debug("cb_setpoint: done=%s, setpoint=%s", self.done.get(), self.setpoint.get())
File "/home/prjemian/.conda/envs/bluesky_2023_2/lib/python3.10/site-packages/ophyd/signal.py", line 1379, in get
info = self._get_with_timeout(
File "/home/prjemian/.conda/envs/bluesky_2023_2/lib/python3.10/site-packages/ophyd/signal.py", line 1319, in _get_with_timeout
info = pv.get_with_metadata(
File "/home/prjemian/.conda/envs/bluesky_2023_2/lib/python3.10/site-packages/epics/pv.py", line 47, in wrapped
return func(self, *args, **kwargs)
File "/home/prjemian/.conda/envs/bluesky_2023_2/lib/python3.10/site-packages/epics/pv.py", line 563, in get_with_metadata
md = ca.get_with_metadata(
File "/home/prjemian/.conda/envs/bluesky_2023_2/lib/python3.10/site-packages/epics/ca.py", line 635, in wrapper
return fcn(*args, **kwds)
File "/home/prjemian/.conda/envs/bluesky_2023_2/lib/python3.10/site-packages/epics/ca.py", line 1390, in get_with_metadata
return get_complete_with_metadata(chid, count=count, ftype=ftype,
File "/home/prjemian/.conda/envs/bluesky_2023_2/lib/python3.10/site-packages/epics/ca.py", line 635, in wrapper
return fcn(*args, **kwds)
File "/home/prjemian/.conda/envs/bluesky_2023_2/lib/python3.10/site-packages/epics/ca.py", line 1537, in get_complete_with_metadata
val = _unpack(chid, full_value, count=count,
File "/home/prjemian/.conda/envs/bluesky_2023_2/lib/python3.10/site-packages/epics/ca.py", line 1273, in _unpack
elem_count = element_count(chid)
File "/home/prjemian/.conda/envs/bluesky_2023_2/lib/python3.10/site-packages/epics/ca.py", line 576, in wrapper
raise ChannelAccessException('Unexpected channel ID')
epics.ca.ChannelAccessException: Unexpected channel ID |
Seems this code is not avoiding the problem at exit. |
Add |
With 9769084, the local builds finish without |
Different failure just now. Probably a transient. Documenting here just in case:
|
Still needs unit tests for |
start the GUI: |