ophyd-async 0.13.7__py3-none-any.whl → 0.14.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ophyd_async/_version.py +2 -2
- ophyd_async/core/__init__.py +30 -2
- ophyd_async/core/_device.py +92 -16
- ophyd_async/core/_mock_signal_backend.py +7 -1
- ophyd_async/{testing → core}/_mock_signal_utils.py +11 -14
- ophyd_async/core/_providers.py +94 -1
- ophyd_async/core/_signal.py +1 -2
- ophyd_async/core/_utils.py +0 -40
- ophyd_async/epics/motor.py +37 -1
- ophyd_async/epics/pmac/_pmac_trajectory.py +15 -1
- ophyd_async/fastcs/eiger/_eiger_io.py +1 -1
- ophyd_async/fastcs/panda/_control.py +2 -1
- ophyd_async/tango/core/__init__.py +6 -0
- ophyd_async/tango/core/_tango_transport.py +12 -11
- ophyd_async/testing/__init__.py +27 -17
- {ophyd_async-0.13.7.dist-info → ophyd_async-0.14.1.dist-info}/METADATA +1 -1
- {ophyd_async-0.13.7.dist-info → ophyd_async-0.14.1.dist-info}/RECORD +20 -20
- {ophyd_async-0.13.7.dist-info → ophyd_async-0.14.1.dist-info}/WHEEL +0 -0
- {ophyd_async-0.13.7.dist-info → ophyd_async-0.14.1.dist-info}/licenses/LICENSE +0 -0
- {ophyd_async-0.13.7.dist-info → ophyd_async-0.14.1.dist-info}/top_level.txt +0 -0
ophyd_async/_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.
|
|
32
|
-
__version_tuple__ = version_tuple = (0,
|
|
31
|
+
__version__ = version = '0.14.1'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 14, 1)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
ophyd_async/core/__init__.py
CHANGED
|
@@ -14,7 +14,15 @@ from ._detector import (
|
|
|
14
14
|
StandardDetector,
|
|
15
15
|
TriggerInfo,
|
|
16
16
|
)
|
|
17
|
-
from ._device import
|
|
17
|
+
from ._device import (
|
|
18
|
+
Device,
|
|
19
|
+
DeviceConnector,
|
|
20
|
+
DeviceMock,
|
|
21
|
+
DeviceVector,
|
|
22
|
+
LazyMock,
|
|
23
|
+
default_mock_class,
|
|
24
|
+
init_devices,
|
|
25
|
+
)
|
|
18
26
|
from ._device_filler import DeviceFiller
|
|
19
27
|
from ._enums import (
|
|
20
28
|
EnabledDisabled,
|
|
@@ -27,10 +35,20 @@ from ._flyer import FlyerController, FlyMotorInfo, StandardFlyer
|
|
|
27
35
|
from ._hdf_dataset import HDFDatasetDescription, HDFDocumentComposer
|
|
28
36
|
from ._log import config_ophyd_async_logging
|
|
29
37
|
from ._mock_signal_backend import MockSignalBackend
|
|
38
|
+
from ._mock_signal_utils import (
|
|
39
|
+
callback_on_mock_put,
|
|
40
|
+
get_mock,
|
|
41
|
+
get_mock_put,
|
|
42
|
+
mock_puts_blocked,
|
|
43
|
+
set_mock_put_proceeds,
|
|
44
|
+
set_mock_value,
|
|
45
|
+
set_mock_values,
|
|
46
|
+
)
|
|
30
47
|
from ._protocol import AsyncConfigurable, AsyncReadable, AsyncStageable, Watcher
|
|
31
48
|
from ._providers import (
|
|
32
49
|
AutoIncrementFilenameProvider,
|
|
33
50
|
AutoIncrementingPathProvider,
|
|
51
|
+
AutoMaxIncrementingPathProvider,
|
|
34
52
|
DatasetDescriber,
|
|
35
53
|
FilenameProvider,
|
|
36
54
|
PathInfo,
|
|
@@ -87,7 +105,6 @@ from ._utils import (
|
|
|
87
105
|
Callback,
|
|
88
106
|
ConfinedModel,
|
|
89
107
|
EnumTypes,
|
|
90
|
-
LazyMock,
|
|
91
108
|
NotConnectedError,
|
|
92
109
|
Reference,
|
|
93
110
|
StrictEnum,
|
|
@@ -166,8 +183,18 @@ __all__ = [
|
|
|
166
183
|
"soft_signal_r_and_setter",
|
|
167
184
|
"soft_signal_rw",
|
|
168
185
|
# Mock signal
|
|
186
|
+
"DeviceMock",
|
|
169
187
|
"LazyMock",
|
|
170
188
|
"MockSignalBackend",
|
|
189
|
+
"default_mock_class",
|
|
190
|
+
# Mocking utilities
|
|
191
|
+
"get_mock",
|
|
192
|
+
"set_mock_value",
|
|
193
|
+
"set_mock_values",
|
|
194
|
+
"get_mock_put",
|
|
195
|
+
"callback_on_mock_put",
|
|
196
|
+
"mock_puts_blocked",
|
|
197
|
+
"set_mock_put_proceeds",
|
|
171
198
|
# Signal utilities
|
|
172
199
|
"observe_value",
|
|
173
200
|
"observe_signals_value",
|
|
@@ -196,6 +223,7 @@ __all__ = [
|
|
|
196
223
|
"FilenameProvider",
|
|
197
224
|
"StaticFilenameProvider",
|
|
198
225
|
"AutoIncrementFilenameProvider",
|
|
226
|
+
"AutoMaxIncrementingPathProvider",
|
|
199
227
|
"UUIDFilenameProvider",
|
|
200
228
|
# Datatset
|
|
201
229
|
"DatasetDescriber",
|
ophyd_async/core/_device.py
CHANGED
|
@@ -5,19 +5,71 @@ import sys
|
|
|
5
5
|
from collections.abc import Awaitable, Callable, Iterator, Mapping, MutableMapping
|
|
6
6
|
from functools import cached_property
|
|
7
7
|
from logging import LoggerAdapter, getLogger
|
|
8
|
-
from typing import Any, TypeVar
|
|
8
|
+
from typing import Any, Generic, TypeVar
|
|
9
|
+
from unittest.mock import Mock
|
|
9
10
|
|
|
10
11
|
from bluesky.protocols import HasName
|
|
11
12
|
from bluesky.run_engine import call_in_bluesky_event_loop, in_bluesky_event_loop
|
|
12
13
|
|
|
13
14
|
from ._utils import (
|
|
14
15
|
DEFAULT_TIMEOUT,
|
|
15
|
-
LazyMock,
|
|
16
16
|
NotConnectedError,
|
|
17
17
|
error_if_none,
|
|
18
18
|
wait_for_connection,
|
|
19
19
|
)
|
|
20
20
|
|
|
21
|
+
DeviceT = TypeVar("DeviceT", bound="Device")
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class DeviceMock(Generic[DeviceT]):
|
|
25
|
+
"""A lazily created Mock to be used when connecting in mock mode.
|
|
26
|
+
|
|
27
|
+
Creating Mocks is reasonably expensive when each Device (and Signal)
|
|
28
|
+
requires its own, and the tree is only used when ``Signal.set()`` is
|
|
29
|
+
called. This class allows a tree of lazily connected Mocks to be
|
|
30
|
+
constructed so that when the leaf is created, so are its parents.
|
|
31
|
+
Any calls to the child are then accessible from the parent mock.
|
|
32
|
+
|
|
33
|
+
Subclasses can override the `connect()` method to inject custom logic
|
|
34
|
+
when mock devices are connected.
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
>>> parent = DeviceMock()
|
|
38
|
+
>>> child = DeviceMock("child", parent)
|
|
39
|
+
>>> child_mock = child()
|
|
40
|
+
>>> child_mock() # doctest: +ELLIPSIS
|
|
41
|
+
<Mock name='mock.child()' id='...'>
|
|
42
|
+
>>> parent_mock = parent()
|
|
43
|
+
>>> parent_mock.mock_calls
|
|
44
|
+
[call.child()]
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def __init__(self, name: str = "", parent: DeviceMock | None = None) -> None:
|
|
50
|
+
self.name = name
|
|
51
|
+
self.parent = parent
|
|
52
|
+
self._mock: Mock | None = None
|
|
53
|
+
|
|
54
|
+
def __call__(self) -> Mock:
|
|
55
|
+
if self._mock is None:
|
|
56
|
+
self._mock = Mock(spec=object)
|
|
57
|
+
if self.parent is not None:
|
|
58
|
+
self.parent().attach_mock(self._mock, self.name)
|
|
59
|
+
return self._mock
|
|
60
|
+
|
|
61
|
+
async def connect(self, device: DeviceT) -> None:
|
|
62
|
+
"""Will be called when the device is connected in mock mode.
|
|
63
|
+
|
|
64
|
+
This allows mock values to be set and callbacks to be added
|
|
65
|
+
to the mock device so it behaves more like the real device.
|
|
66
|
+
"""
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
# Keep LazyMock as an alias for backwards compatibility
|
|
70
|
+
# Remove for ophyd-async 1.0
|
|
71
|
+
LazyMock = DeviceMock
|
|
72
|
+
|
|
21
73
|
|
|
22
74
|
class DeviceConnector:
|
|
23
75
|
"""Defines how a `Device` should be connected and type hints processed."""
|
|
@@ -40,7 +92,7 @@ class DeviceConnector:
|
|
|
40
92
|
during `__init__`.
|
|
41
93
|
"""
|
|
42
94
|
|
|
43
|
-
async def connect_mock(self, device: Device, mock:
|
|
95
|
+
async def connect_mock(self, device: Device, mock: DeviceMock):
|
|
44
96
|
"""Use during [](#Device.connect) with `mock=True`.
|
|
45
97
|
|
|
46
98
|
This is called when there is no cached connect done in `mock=True`
|
|
@@ -50,12 +102,16 @@ class DeviceConnector:
|
|
|
50
102
|
exceptions: dict[str, Exception] = {}
|
|
51
103
|
for name, child_device in device.children():
|
|
52
104
|
try:
|
|
53
|
-
|
|
105
|
+
child_mock_class = child_device._mock_class # noqa: SLF001
|
|
106
|
+
await child_device.connect(mock=child_mock_class(name, mock))
|
|
54
107
|
except Exception as exc:
|
|
55
108
|
exceptions[name] = exc
|
|
56
109
|
if exceptions:
|
|
57
110
|
raise NotConnectedError.with_other_exceptions_logged(exceptions)
|
|
58
111
|
|
|
112
|
+
# Call the DeviceMock's connect method to inject custom logic
|
|
113
|
+
await mock.connect(device)
|
|
114
|
+
|
|
59
115
|
async def connect_real(self, device: Device, timeout: float, force_reconnect: bool):
|
|
60
116
|
"""Use during [](#Device.connect) with `mock=False`.
|
|
61
117
|
|
|
@@ -82,8 +138,10 @@ class Device(HasName):
|
|
|
82
138
|
_name: str = ""
|
|
83
139
|
# None if connect hasn't started, a Task if it has
|
|
84
140
|
_connect_task: asyncio.Task | None = None
|
|
141
|
+
# The mock class to be used if we connect in mock mode
|
|
142
|
+
_mock_class: type[DeviceMock] = DeviceMock
|
|
85
143
|
# The mock if we have connected in mock mode
|
|
86
|
-
_mock:
|
|
144
|
+
_mock: DeviceMock | None = None
|
|
87
145
|
# The separator to use when making child names
|
|
88
146
|
_child_name_separator: str = "-"
|
|
89
147
|
|
|
@@ -163,7 +221,7 @@ class Device(HasName):
|
|
|
163
221
|
|
|
164
222
|
async def connect(
|
|
165
223
|
self,
|
|
166
|
-
mock: bool |
|
|
224
|
+
mock: bool | DeviceMock = False,
|
|
167
225
|
timeout: float = DEFAULT_TIMEOUT,
|
|
168
226
|
force_reconnect: bool = False,
|
|
169
227
|
) -> None:
|
|
@@ -175,25 +233,26 @@ class Device(HasName):
|
|
|
175
233
|
|
|
176
234
|
:param mock:
|
|
177
235
|
If True then use [](#MockSignalBackend) for all Signals. If passed a
|
|
178
|
-
[](#
|
|
179
|
-
otherwise create one
|
|
236
|
+
[](#DeviceMock) then pass this down for use within the Signals,
|
|
237
|
+
otherwise create one using the registered default mock for this device
|
|
238
|
+
type, or a plain [](#DeviceMock) if no default is registered.
|
|
180
239
|
:param timeout: Time to wait before failing with a TimeoutError.
|
|
181
240
|
:param force_reconnect:
|
|
182
241
|
If True, force a reconnect even if the last connect succeeded.
|
|
183
242
|
"""
|
|
184
|
-
connector = error_if_none(
|
|
243
|
+
connector: DeviceConnector = error_if_none(
|
|
185
244
|
getattr(self, "_connector", None),
|
|
186
245
|
f"{self}: doesn't have attribute `_connector`,"
|
|
187
246
|
f" did you call `super().__init__` in your `__init__` method?",
|
|
188
247
|
)
|
|
189
248
|
if mock:
|
|
190
249
|
# Always connect in mock mode serially
|
|
191
|
-
if isinstance(mock,
|
|
192
|
-
# Use the
|
|
250
|
+
if isinstance(mock, DeviceMock):
|
|
251
|
+
# Use the user supplied mock
|
|
193
252
|
self._mock = mock
|
|
194
253
|
elif not self._mock:
|
|
195
|
-
# Make
|
|
196
|
-
self._mock =
|
|
254
|
+
# Make a new mock of the registered type
|
|
255
|
+
self._mock = self._mock_class()
|
|
197
256
|
await connector.connect_mock(self, self._mock)
|
|
198
257
|
else:
|
|
199
258
|
# Try to cache the connect in real mode
|
|
@@ -223,9 +282,6 @@ _not_device_attrs = {
|
|
|
223
282
|
}
|
|
224
283
|
|
|
225
284
|
|
|
226
|
-
DeviceT = TypeVar("DeviceT", bound=Device)
|
|
227
|
-
|
|
228
|
-
|
|
229
285
|
class DeviceVector(MutableMapping[int, DeviceT], Device):
|
|
230
286
|
"""Defines a dictionary of Device children with arbitrary integer keys.
|
|
231
287
|
|
|
@@ -396,3 +452,23 @@ def init_devices(
|
|
|
396
452
|
await wait_for_connection(**coros)
|
|
397
453
|
|
|
398
454
|
return DeviceProcessor(process_devices)
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
def default_mock_class(
|
|
458
|
+
mock_cls: type[DeviceMock],
|
|
459
|
+
) -> Callable[[type[DeviceT]], type[DeviceT]]:
|
|
460
|
+
"""Register a DeviceMock subclass as the default mock for a Device class.
|
|
461
|
+
|
|
462
|
+
This decorator allows automatic injection of mock logic when devices are
|
|
463
|
+
connected in mock mode. The decorated DeviceMock class should override
|
|
464
|
+
the `connect()` method to define custom mock behavior.
|
|
465
|
+
|
|
466
|
+
:param mock_cls: A DeviceMock subclass to register.
|
|
467
|
+
:returns: A decorator that registers the mock class for a Device subclass.
|
|
468
|
+
"""
|
|
469
|
+
|
|
470
|
+
def wrapper(device_cls: type[DeviceT]) -> type[DeviceT]:
|
|
471
|
+
device_cls._mock_class = mock_cls # noqa: SLF001
|
|
472
|
+
return device_cls
|
|
473
|
+
|
|
474
|
+
return wrapper
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
import asyncio
|
|
2
4
|
from collections.abc import Callable
|
|
3
5
|
from functools import cached_property
|
|
6
|
+
from typing import TYPE_CHECKING
|
|
4
7
|
from unittest.mock import AsyncMock
|
|
5
8
|
|
|
6
9
|
from bluesky.protocols import Reading
|
|
@@ -9,7 +12,10 @@ from event_model import DataKey
|
|
|
9
12
|
from ._derived_signal_backend import DerivedSignalBackend
|
|
10
13
|
from ._signal_backend import SignalBackend, SignalDatatypeT
|
|
11
14
|
from ._soft_signal_backend import SoftSignalBackend
|
|
12
|
-
from ._utils import Callback
|
|
15
|
+
from ._utils import Callback
|
|
16
|
+
|
|
17
|
+
if TYPE_CHECKING:
|
|
18
|
+
from ._device import LazyMock
|
|
13
19
|
|
|
14
20
|
|
|
15
21
|
class MockSignalBackend(SignalBackend[SignalDatatypeT]):
|
|
@@ -2,15 +2,10 @@ from collections.abc import Awaitable, Callable, Iterable, Iterator
|
|
|
2
2
|
from contextlib import contextmanager
|
|
3
3
|
from unittest.mock import AsyncMock, Mock
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Signal,
|
|
10
|
-
SignalConnector,
|
|
11
|
-
SignalDatatypeT,
|
|
12
|
-
SignalR,
|
|
13
|
-
)
|
|
5
|
+
from ._device import Device, DeviceMock
|
|
6
|
+
from ._mock_signal_backend import MockSignalBackend
|
|
7
|
+
from ._signal import Signal, SignalConnector, SignalR
|
|
8
|
+
from ._signal_backend import SignalDatatypeT
|
|
14
9
|
|
|
15
10
|
|
|
16
11
|
def get_mock(device: Device | Signal) -> Mock:
|
|
@@ -19,16 +14,18 @@ def get_mock(device: Device | Signal) -> Mock:
|
|
|
19
14
|
The device must have been connected in mock mode.
|
|
20
15
|
"""
|
|
21
16
|
mock = device._mock # noqa: SLF001
|
|
22
|
-
|
|
17
|
+
if not isinstance(mock, DeviceMock):
|
|
18
|
+
msg = f"Device {device} not connected in mock mode"
|
|
19
|
+
raise RuntimeError(msg)
|
|
23
20
|
return mock()
|
|
24
21
|
|
|
25
22
|
|
|
26
23
|
def _get_mock_signal_backend(signal: Signal) -> MockSignalBackend:
|
|
27
24
|
connector = signal._connector # noqa: SLF001
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
if not isinstance(connector, SignalConnector):
|
|
26
|
+
raise TypeError(f"Expected Signal, got {signal}")
|
|
27
|
+
if not isinstance(connector.backend, MockSignalBackend):
|
|
28
|
+
raise RuntimeError(f"Signal {signal} not connected in mock mode")
|
|
32
29
|
return connector.backend
|
|
33
30
|
|
|
34
31
|
|
ophyd_async/core/_providers.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import re
|
|
1
2
|
import uuid
|
|
2
3
|
from abc import abstractmethod
|
|
3
4
|
from collections.abc import Callable
|
|
4
5
|
from dataclasses import dataclass
|
|
5
6
|
from datetime import date
|
|
6
|
-
from pathlib import PurePath, PureWindowsPath
|
|
7
|
+
from pathlib import Path, PurePath, PureWindowsPath
|
|
7
8
|
from typing import Protocol
|
|
8
9
|
from urllib.parse import urlunparse
|
|
9
10
|
|
|
@@ -157,6 +158,98 @@ class StaticPathProvider(PathProvider):
|
|
|
157
158
|
)
|
|
158
159
|
|
|
159
160
|
|
|
161
|
+
class AutoMaxIncrementingPathProvider(PathProvider):
|
|
162
|
+
"""Increment directory name on each call by checking existing directories.
|
|
163
|
+
|
|
164
|
+
Looks through directories in a specified base path to increment directory name.
|
|
165
|
+
PathInfo gives path like base_path/0001_dirname/dirname, or
|
|
166
|
+
base_path/yyyy-mm-dd/0001_dirname/dirname if dated is true. Here,
|
|
167
|
+
the '0001' is the value which gets incremented if the file exists already.
|
|
168
|
+
|
|
169
|
+
It's recommended for the base path provider to be non-incrementing.
|
|
170
|
+
|
|
171
|
+
Args:
|
|
172
|
+
base_path_provider: Path to create directories inside of. Note that the filename of
|
|
173
|
+
this provider is used as the top level directory and the filename
|
|
174
|
+
max_digits: Number of digits to pad onto the parent directory.
|
|
175
|
+
starting_value: Number to start incrementing from.
|
|
176
|
+
dated: Whether to create an extra directory to specify the day.
|
|
177
|
+
|
|
178
|
+
"""
|
|
179
|
+
|
|
180
|
+
def __init__(
|
|
181
|
+
self,
|
|
182
|
+
base_path_provider: PathProvider,
|
|
183
|
+
max_digits: int = 4,
|
|
184
|
+
starting_value: int = 0,
|
|
185
|
+
dated: bool = False,
|
|
186
|
+
):
|
|
187
|
+
self._base_path_provider = base_path_provider
|
|
188
|
+
self._max_digits = max_digits
|
|
189
|
+
self._next_value = starting_value
|
|
190
|
+
self._dated = dated
|
|
191
|
+
|
|
192
|
+
def _get_highest_number_from(self, path: Path) -> int:
|
|
193
|
+
# Look through directories in path which end in "_{number} and get highest
|
|
194
|
+
# number"
|
|
195
|
+
highest_number = 0
|
|
196
|
+
candidates = [
|
|
197
|
+
x for x in path.iterdir() if x.is_dir() and re.match(r"^\d+_", x.name)
|
|
198
|
+
]
|
|
199
|
+
if candidates:
|
|
200
|
+
highest_number = max(
|
|
201
|
+
int(x.name.split("_", maxsplit=1)[0]) for x in candidates
|
|
202
|
+
)
|
|
203
|
+
else:
|
|
204
|
+
highest_number = self._next_value
|
|
205
|
+
return highest_number
|
|
206
|
+
|
|
207
|
+
def __call__(self, device_name: str | None = None) -> PathInfo:
|
|
208
|
+
base_path_info = self._base_path_provider.__call__()
|
|
209
|
+
base_path_dir = Path(base_path_info.directory_path)
|
|
210
|
+
if self._dated:
|
|
211
|
+
# Make sure we are the max ID of any other days to keep numbering
|
|
212
|
+
# consistent.
|
|
213
|
+
cands = [
|
|
214
|
+
self._get_highest_number_from(x)
|
|
215
|
+
for x in base_path_dir.iterdir()
|
|
216
|
+
if re.match(r"^\d\d\d\d-\d\d-\d\d$", x.name)
|
|
217
|
+
]
|
|
218
|
+
if cands:
|
|
219
|
+
self._next_value = max(max(cands) + 1, self._next_value)
|
|
220
|
+
|
|
221
|
+
path = base_path_dir / date.today().strftime("%Y-%m-%d")
|
|
222
|
+
else:
|
|
223
|
+
path = base_path_dir
|
|
224
|
+
|
|
225
|
+
val_to_use = self._next_value
|
|
226
|
+
|
|
227
|
+
# Get the highest number using files in path, or use
|
|
228
|
+
# stored next value if no files are found.
|
|
229
|
+
if path.exists():
|
|
230
|
+
highest_number = self._get_highest_number_from(path)
|
|
231
|
+
val_to_use = (
|
|
232
|
+
highest_number + 1
|
|
233
|
+
if not highest_number == self._next_value
|
|
234
|
+
else highest_number
|
|
235
|
+
)
|
|
236
|
+
|
|
237
|
+
self._next_value = val_to_use + 1
|
|
238
|
+
|
|
239
|
+
filename = base_path_info.filename
|
|
240
|
+
|
|
241
|
+
padded_counter = f"{val_to_use:0{self._max_digits}}"
|
|
242
|
+
full_path = (
|
|
243
|
+
path / f"{padded_counter}_{filename.strip('_')}" / filename.rstrip("_")
|
|
244
|
+
)
|
|
245
|
+
return PathInfo(
|
|
246
|
+
directory_path=full_path.parent,
|
|
247
|
+
directory_uri=None,
|
|
248
|
+
filename=full_path.name,
|
|
249
|
+
create_dir_depth=0,
|
|
250
|
+
)
|
|
251
|
+
|
|
252
|
+
|
|
160
253
|
class AutoIncrementingPathProvider(PathProvider):
|
|
161
254
|
"""Provides a new numerically incremented path on each call."""
|
|
162
255
|
|
ophyd_async/core/_signal.py
CHANGED
|
@@ -19,7 +19,7 @@ from bluesky.protocols import (
|
|
|
19
19
|
from event_model import DataKey
|
|
20
20
|
from stamina import retry_context
|
|
21
21
|
|
|
22
|
-
from ._device import Device, DeviceConnector
|
|
22
|
+
from ._device import Device, DeviceConnector, LazyMock
|
|
23
23
|
from ._mock_signal_backend import MockSignalBackend
|
|
24
24
|
from ._protocol import AsyncReadable, AsyncStageable
|
|
25
25
|
from ._signal_backend import SignalBackend, SignalDatatypeT, SignalDatatypeV
|
|
@@ -30,7 +30,6 @@ from ._utils import (
|
|
|
30
30
|
DEFAULT_TIMEOUT,
|
|
31
31
|
CalculatableTimeout,
|
|
32
32
|
Callback,
|
|
33
|
-
LazyMock,
|
|
34
33
|
T,
|
|
35
34
|
error_if_none,
|
|
36
35
|
)
|
ophyd_async/core/_utils.py
CHANGED
|
@@ -14,7 +14,6 @@ from typing import (
|
|
|
14
14
|
get_args,
|
|
15
15
|
get_origin,
|
|
16
16
|
)
|
|
17
|
-
from unittest.mock import Mock
|
|
18
17
|
|
|
19
18
|
import numpy as np
|
|
20
19
|
from pydantic import BaseModel, ConfigDict
|
|
@@ -342,45 +341,6 @@ class Reference(Generic[T]):
|
|
|
342
341
|
return self._obj
|
|
343
342
|
|
|
344
343
|
|
|
345
|
-
class LazyMock:
|
|
346
|
-
"""A lazily created Mock to be used when connecting in mock mode.
|
|
347
|
-
|
|
348
|
-
Creating Mocks is reasonably expensive when each Device (and Signal)
|
|
349
|
-
requires its own, and the tree is only used when ``Signal.set()`` is
|
|
350
|
-
called. This class allows a tree of lazily connected Mocks to be
|
|
351
|
-
constructed so that when the leaf is created, so are its parents.
|
|
352
|
-
Any calls to the child are then accessible from the parent mock.
|
|
353
|
-
|
|
354
|
-
```python
|
|
355
|
-
>>> parent = LazyMock()
|
|
356
|
-
>>> child = parent.child("child")
|
|
357
|
-
>>> child_mock = child()
|
|
358
|
-
>>> child_mock() # doctest: +ELLIPSIS
|
|
359
|
-
<Mock name='mock.child()' id='...'>
|
|
360
|
-
>>> parent_mock = parent()
|
|
361
|
-
>>> parent_mock.mock_calls
|
|
362
|
-
[call.child()]
|
|
363
|
-
|
|
364
|
-
```
|
|
365
|
-
"""
|
|
366
|
-
|
|
367
|
-
def __init__(self, name: str = "", parent: LazyMock | None = None) -> None:
|
|
368
|
-
self.parent = parent
|
|
369
|
-
self.name = name
|
|
370
|
-
self._mock: Mock | None = None
|
|
371
|
-
|
|
372
|
-
def child(self, name: str) -> LazyMock:
|
|
373
|
-
"""Return a child of this LazyMock with the given name."""
|
|
374
|
-
return LazyMock(name, self)
|
|
375
|
-
|
|
376
|
-
def __call__(self) -> Mock:
|
|
377
|
-
if self._mock is None:
|
|
378
|
-
self._mock = Mock(spec=object)
|
|
379
|
-
if self.parent is not None:
|
|
380
|
-
self.parent().attach_mock(self._mock, self.name)
|
|
381
|
-
return self._mock
|
|
382
|
-
|
|
383
|
-
|
|
384
344
|
class ConfinedModel(BaseModel):
|
|
385
345
|
"""A base class confined to explicitly defined fields in the model schema."""
|
|
386
346
|
|
ophyd_async/epics/motor.py
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
https://github.com/epics-modules/motor
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
6
8
|
import asyncio
|
|
7
9
|
|
|
8
10
|
from bluesky.protocols import (
|
|
@@ -21,18 +23,22 @@ from ophyd_async.core import (
|
|
|
21
23
|
AsyncStatus,
|
|
22
24
|
CalculatableTimeout,
|
|
23
25
|
Callback,
|
|
26
|
+
DeviceMock,
|
|
24
27
|
FlyMotorInfo,
|
|
25
28
|
StandardReadable,
|
|
26
29
|
StrictEnum,
|
|
27
30
|
WatchableAsyncStatus,
|
|
28
31
|
WatcherUpdate,
|
|
32
|
+
callback_on_mock_put,
|
|
33
|
+
default_mock_class,
|
|
29
34
|
error_if_none,
|
|
30
35
|
observe_value,
|
|
36
|
+
set_mock_value,
|
|
31
37
|
)
|
|
32
38
|
from ophyd_async.core import StandardReadableFormat as Format
|
|
33
39
|
from ophyd_async.epics.core import epics_signal_r, epics_signal_rw, epics_signal_w
|
|
34
40
|
|
|
35
|
-
__all__ = ["MotorLimitsError", "Motor"]
|
|
41
|
+
__all__ = ["MotorLimitsError", "Motor", "InstantMotorMock", "OffsetMode", "UseSetMode"]
|
|
36
42
|
|
|
37
43
|
|
|
38
44
|
class MotorLimitsError(Exception):
|
|
@@ -61,15 +67,45 @@ def __getattr__(name):
|
|
|
61
67
|
|
|
62
68
|
|
|
63
69
|
class OffsetMode(StrictEnum):
|
|
70
|
+
"""In Set mode, determine what to do when the motor setpoint is written."""
|
|
71
|
+
|
|
64
72
|
VARIABLE = "Variable"
|
|
73
|
+
"""Change the offset so the readback matches the setpoint."""
|
|
65
74
|
FROZEN = "Frozen"
|
|
75
|
+
"""Tell the controller to change the readback without changing the offset."""
|
|
66
76
|
|
|
67
77
|
|
|
68
78
|
class UseSetMode(StrictEnum):
|
|
79
|
+
"""Determine what to do when the motor setpoint is written."""
|
|
80
|
+
|
|
69
81
|
USE = "Use"
|
|
82
|
+
"""Tell the controller to move to the setpoint."""
|
|
70
83
|
SET = "Set"
|
|
84
|
+
"""Change offset (in record or in controller) when setpoint is written."""
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class InstantMotorMock(DeviceMock["Motor"]):
|
|
88
|
+
"""Mock behaviour that instantly moves readback to setpoint."""
|
|
89
|
+
|
|
90
|
+
async def connect(self, device: Motor) -> None:
|
|
91
|
+
"""Mock signals to do an instant move on setpoint write."""
|
|
92
|
+
# Set sensible defaults to avoid runtime errors
|
|
93
|
+
set_mock_value(device.velocity, 1000) # Prevent ZeroDivisionError
|
|
94
|
+
set_mock_value(device.max_velocity, 1000) # Prevent ZeroDivisionError
|
|
95
|
+
|
|
96
|
+
# Motor starts in "done" state (not moving)
|
|
97
|
+
set_mock_value(device.motor_done_move, 1)
|
|
98
|
+
|
|
99
|
+
# When setpoint is written to, immediately update readback and done flag
|
|
100
|
+
def _instant_move(value, wait):
|
|
101
|
+
set_mock_value(device.motor_done_move, 0) # Moving
|
|
102
|
+
set_mock_value(device.user_readback, value) # Arrive instantly
|
|
103
|
+
set_mock_value(device.motor_done_move, 1) # Done
|
|
104
|
+
|
|
105
|
+
callback_on_mock_put(device.user_setpoint, _instant_move)
|
|
71
106
|
|
|
72
107
|
|
|
108
|
+
@default_mock_class(InstantMotorMock)
|
|
73
109
|
class Motor(
|
|
74
110
|
StandardReadable,
|
|
75
111
|
Locatable[float],
|
|
@@ -10,6 +10,7 @@ from ophyd_async.core import (
|
|
|
10
10
|
AsyncStatus,
|
|
11
11
|
FlyerController,
|
|
12
12
|
error_if_none,
|
|
13
|
+
gather_dict,
|
|
13
14
|
observe_value,
|
|
14
15
|
set_and_wait_for_value,
|
|
15
16
|
wait_for_value,
|
|
@@ -202,12 +203,25 @@ class PmacTrajectoryTriggerLogic(FlyerController):
|
|
|
202
203
|
coord = self.pmac.coord[motor_info.cs_number]
|
|
203
204
|
coros = []
|
|
204
205
|
await coord.defer_moves.set(True)
|
|
206
|
+
|
|
207
|
+
motor_readbacks = await gather_dict(
|
|
208
|
+
{motor: motor.user_readback.get_value() for motor in ramp_up_position}
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
move_times = [
|
|
212
|
+
abs(position - motor_readbacks[motor])
|
|
213
|
+
/ motor_info.motor_max_velocity[motor]
|
|
214
|
+
for motor, position in ramp_up_position.items()
|
|
215
|
+
]
|
|
216
|
+
|
|
217
|
+
longest_time = max(move_times)
|
|
218
|
+
|
|
205
219
|
for motor, position in ramp_up_position.items():
|
|
206
220
|
coros.append(
|
|
207
221
|
set_and_wait_for_value(
|
|
208
222
|
coord.cs_axis_setpoint[motor_info.motor_cs_index[motor]],
|
|
209
223
|
position,
|
|
210
|
-
set_timeout=
|
|
224
|
+
set_timeout=longest_time + DEFAULT_TIMEOUT,
|
|
211
225
|
wait_for_set_completion=False,
|
|
212
226
|
)
|
|
213
227
|
)
|
|
@@ -29,7 +29,7 @@ class EigerDetectorIO(Device):
|
|
|
29
29
|
frame_time: SignalRW[float]
|
|
30
30
|
nimages: SignalRW[int]
|
|
31
31
|
ntrigger: SignalRW[int]
|
|
32
|
-
nexpi: SignalRW[int]
|
|
32
|
+
nexpi: SignalRW[int] | None
|
|
33
33
|
trigger_mode: SignalRW[str]
|
|
34
34
|
roi_mode: SignalRW[str]
|
|
35
35
|
photon_energy: SignalRW[float]
|
|
@@ -35,7 +35,8 @@ class PandaPcapController(DetectorController):
|
|
|
35
35
|
await wait_for_value(self.pcap.active, True, timeout=1)
|
|
36
36
|
|
|
37
37
|
async def wait_for_idle(self):
|
|
38
|
-
|
|
38
|
+
if self._arm_status and not self._arm_status.done:
|
|
39
|
+
await self._arm_status
|
|
39
40
|
|
|
40
41
|
async def disarm(self):
|
|
41
42
|
await self.pcap.arm.set(False)
|
|
@@ -9,7 +9,9 @@ from ._signal import (
|
|
|
9
9
|
tango_signal_x,
|
|
10
10
|
)
|
|
11
11
|
from ._tango_transport import (
|
|
12
|
+
AttributeInfoEx,
|
|
12
13
|
AttributeProxy,
|
|
14
|
+
CommandInfo,
|
|
13
15
|
CommandProxy,
|
|
14
16
|
CommandProxyReadCharacter,
|
|
15
17
|
TangoDoubleStringTable,
|
|
@@ -21,6 +23,7 @@ from ._tango_transport import (
|
|
|
21
23
|
get_python_type,
|
|
22
24
|
get_source_metadata,
|
|
23
25
|
get_tango_trl,
|
|
26
|
+
parse_precision,
|
|
24
27
|
)
|
|
25
28
|
from ._utils import (
|
|
26
29
|
DevStateEnum,
|
|
@@ -30,7 +33,9 @@ from ._utils import (
|
|
|
30
33
|
)
|
|
31
34
|
|
|
32
35
|
__all__ = [
|
|
36
|
+
"AttributeInfoEx",
|
|
33
37
|
"AttributeProxy",
|
|
38
|
+
"CommandInfo",
|
|
34
39
|
"CommandProxy",
|
|
35
40
|
"CommandProxyReadCharacter",
|
|
36
41
|
"DevStateEnum",
|
|
@@ -44,6 +49,7 @@ __all__ = [
|
|
|
44
49
|
"infer_python_type",
|
|
45
50
|
"infer_signal_type",
|
|
46
51
|
"make_backend",
|
|
52
|
+
"parse_precision",
|
|
47
53
|
"tango_signal_r",
|
|
48
54
|
"tango_signal_rw",
|
|
49
55
|
"tango_signal_w",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import asyncio
|
|
2
2
|
import functools
|
|
3
3
|
import logging
|
|
4
|
+
import re
|
|
4
5
|
import time
|
|
5
6
|
from abc import abstractmethod
|
|
6
7
|
from collections.abc import Callable, Coroutine, Sequence
|
|
@@ -582,6 +583,15 @@ class CommandProxy(TangoProxy):
|
|
|
582
583
|
pass
|
|
583
584
|
|
|
584
585
|
|
|
586
|
+
PRECISION_PATTERN = re.compile(r"%\d*\.(\d+)f")
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
def parse_precision(config: AttributeInfoEx):
|
|
590
|
+
if config.format and (matches := PRECISION_PATTERN.findall(config.format)):
|
|
591
|
+
return int(matches[0])
|
|
592
|
+
return None
|
|
593
|
+
|
|
594
|
+
|
|
585
595
|
def get_dtype_extended(datatype) -> object | None:
|
|
586
596
|
"""For converting tango types to numpy datatype formats."""
|
|
587
597
|
# DevState tango type does not have numpy equivalents
|
|
@@ -639,17 +649,8 @@ def get_source_metadata(
|
|
|
639
649
|
if tr_dtype == CmdArgType.DevState:
|
|
640
650
|
_choices = list(DevState.names.keys())
|
|
641
651
|
|
|
642
|
-
_precision =
|
|
643
|
-
|
|
644
|
-
try:
|
|
645
|
-
_precision = int(config.format.split(".")[1].split("f")[0])
|
|
646
|
-
except (ValueError, IndexError) as exc:
|
|
647
|
-
# If parsing config.format fails, _precision remains None.
|
|
648
|
-
logger.warning(
|
|
649
|
-
"Failed to parse precision from config.format: %s. Error: %s",
|
|
650
|
-
config.format,
|
|
651
|
-
exc,
|
|
652
|
-
)
|
|
652
|
+
_precision = parse_precision(config)
|
|
653
|
+
|
|
653
654
|
no_limits = Limits(
|
|
654
655
|
control=LimitsRange(high=None, low=None),
|
|
655
656
|
warning=LimitsRange(high=None, low=None),
|
ophyd_async/testing/__init__.py
CHANGED
|
@@ -13,15 +13,6 @@ from ._assert import (
|
|
|
13
13
|
assert_value,
|
|
14
14
|
partial_reading,
|
|
15
15
|
)
|
|
16
|
-
from ._mock_signal_utils import (
|
|
17
|
-
callback_on_mock_put,
|
|
18
|
-
get_mock,
|
|
19
|
-
get_mock_put,
|
|
20
|
-
mock_puts_blocked,
|
|
21
|
-
set_mock_put_proceeds,
|
|
22
|
-
set_mock_value,
|
|
23
|
-
set_mock_values,
|
|
24
|
-
)
|
|
25
16
|
from ._one_of_everything import (
|
|
26
17
|
ExampleEnum,
|
|
27
18
|
ExampleTable,
|
|
@@ -38,6 +29,33 @@ from ._single_derived import (
|
|
|
38
29
|
)
|
|
39
30
|
from ._wait_for_pending import wait_for_pending_wakeups
|
|
40
31
|
|
|
32
|
+
|
|
33
|
+
# Back compat - delete before 1.0
|
|
34
|
+
def __getattr__(name):
|
|
35
|
+
import warnings
|
|
36
|
+
|
|
37
|
+
import ophyd_async.core
|
|
38
|
+
|
|
39
|
+
moved_to_core = {
|
|
40
|
+
"callback_on_mock_put",
|
|
41
|
+
"get_mock",
|
|
42
|
+
"get_mock_put",
|
|
43
|
+
"mock_puts_blocked",
|
|
44
|
+
"set_mock_put_proceeds",
|
|
45
|
+
"set_mock_value",
|
|
46
|
+
"set_mock_values",
|
|
47
|
+
}
|
|
48
|
+
if name in moved_to_core:
|
|
49
|
+
warnings.warn(
|
|
50
|
+
DeprecationWarning(
|
|
51
|
+
f"ophyd_async.testing.{name} has moved to ophyd_async.core"
|
|
52
|
+
),
|
|
53
|
+
stacklevel=2,
|
|
54
|
+
)
|
|
55
|
+
return getattr(ophyd_async.core, name)
|
|
56
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
57
|
+
|
|
58
|
+
|
|
41
59
|
# The order of this list determines the order of the documentation,
|
|
42
60
|
# so does not match the alphabetical order of the imports
|
|
43
61
|
__all__ = [
|
|
@@ -49,14 +67,6 @@ __all__ = [
|
|
|
49
67
|
"assert_describe_signal",
|
|
50
68
|
"assert_emitted",
|
|
51
69
|
"partial_reading",
|
|
52
|
-
# Mocking utilities
|
|
53
|
-
"get_mock",
|
|
54
|
-
"set_mock_value",
|
|
55
|
-
"set_mock_values",
|
|
56
|
-
"get_mock_put",
|
|
57
|
-
"callback_on_mock_put",
|
|
58
|
-
"mock_puts_blocked",
|
|
59
|
-
"set_mock_put_proceeds",
|
|
60
70
|
# Wait for pending wakeups
|
|
61
71
|
"wait_for_pending_wakeups",
|
|
62
72
|
"ExampleEnum",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ophyd-async
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.14.1
|
|
4
4
|
Summary: Asynchronous Bluesky hardware abstraction code, compatible with control systems like EPICS and Tango
|
|
5
5
|
Author-email: Tom Cobb <tom.cobb@diamond.ac.uk>
|
|
6
6
|
License: BSD 3-Clause License
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
ophyd_async/__init__.py,sha256=dcAA3qsj1nNIMe5l-v2tlduZ_ypwBmyuHe45Lsq4k4w,206
|
|
2
2
|
ophyd_async/__main__.py,sha256=n_U4O9bgm97OuboUB_9eK7eFiwy8BZSgXJ0OzbE0DqU,481
|
|
3
3
|
ophyd_async/_docs_parser.py,sha256=gPYrigfSbYCF7QoSf2UvE-cpQu4snSssl7ZWN-kKDzI,352
|
|
4
|
-
ophyd_async/_version.py,sha256=
|
|
4
|
+
ophyd_async/_version.py,sha256=a3VJZDtDsD7dO22j4y92zbdkUlJwzXf_QabiVquJm1Y,706
|
|
5
5
|
ophyd_async/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
ophyd_async/core/__init__.py,sha256=
|
|
6
|
+
ophyd_async/core/__init__.py,sha256=GJxLNTxXD3Qlghq6CNe-mCeludgBBpHkHXkbDFojdHQ,6084
|
|
7
7
|
ophyd_async/core/_derived_signal.py,sha256=TuZza_j3J1Bw4QSqBYB9Ta2FyQP5BycO3nSHVtJ890Q,13015
|
|
8
8
|
ophyd_async/core/_derived_signal_backend.py,sha256=Ibce9JHghiI5Ir8w0pUYULHL2qWkobeUYc0-CDrsO2E,12615
|
|
9
9
|
ophyd_async/core/_detector.py,sha256=9fYbBPmRnMGADcDTYkspDAL2uzhtNNiKCEeBUU0oKaY,14942
|
|
10
|
-
ophyd_async/core/_device.py,sha256=
|
|
10
|
+
ophyd_async/core/_device.py,sha256=tm-khZLMy-Q7nn86GYHkbXRJOc83DgkbrdQ6WCjZhUs,17638
|
|
11
11
|
ophyd_async/core/_device_filler.py,sha256=MDz8eQQ-eEAwo-UEMxfqPfpcBuMG01tLCGR6utwVnmE,14825
|
|
12
12
|
ophyd_async/core/_enums.py,sha256=2vh6x0rZ6SLiw2xxq1xVIn-GpbLDFc8wZoVdA55QiE8,370
|
|
13
13
|
ophyd_async/core/_flyer.py,sha256=8zKyU5aQOr_t59GIUwsYeb8NSabdvBp0swwuRe4v5VQ,3457
|
|
14
14
|
ophyd_async/core/_hdf_dataset.py,sha256=0bIX_ZbFSMdXqDwRtEvV-0avHnwXhjPddE5GVNmo7H8,2608
|
|
15
15
|
ophyd_async/core/_log.py,sha256=DxKR4Nz3SgTaTzKBZWqt-w48yT8WUAr_3Qr223TEWRw,3587
|
|
16
|
-
ophyd_async/core/_mock_signal_backend.py,sha256=
|
|
16
|
+
ophyd_async/core/_mock_signal_backend.py,sha256=cFovZEwwqYKV2LuQDZStSr3TFFvA31IJeSRoheHnZ8Q,3401
|
|
17
|
+
ophyd_async/core/_mock_signal_utils.py,sha256=ePFBDaon2lFT0vcnAaCRuoLr953QV6tYgHmY2fXQW-8,5520
|
|
17
18
|
ophyd_async/core/_protocol.py,sha256=wQ_snxhTprHqEjQb1HgFwBljwolMY6A8C3xgV1PXwdU,4051
|
|
18
|
-
ophyd_async/core/_providers.py,sha256=
|
|
19
|
+
ophyd_async/core/_providers.py,sha256=IO6xlAVQLkbECT96ezgzoDfZ_OhbD9NrDdXvEcyWJkI,13087
|
|
19
20
|
ophyd_async/core/_readable.py,sha256=iBo1YwA5bsAbzLbznvmSnzKDWUuGkLh850Br3BXsgeU,11707
|
|
20
21
|
ophyd_async/core/_settings.py,sha256=_ZccbXKP7j5rG6-bMKk7aaLr8hChdRDAPY_YSR71XXM,4213
|
|
21
|
-
ophyd_async/core/_signal.py,sha256=
|
|
22
|
+
ophyd_async/core/_signal.py,sha256=OEfjW_BIC3dVxgsWC0aVUj9rQL36KHkNTBCUVXjSRFo,28274
|
|
22
23
|
ophyd_async/core/_signal_backend.py,sha256=F3ma45cIIJ3D702zsVZIqn4Jv7u05YzMQBQND70QCbQ,6987
|
|
23
24
|
ophyd_async/core/_soft_signal_backend.py,sha256=NJUuyaCKtBZjggt8WKi7_lKQRHasToxviuQvl5xbhLU,6222
|
|
24
25
|
ophyd_async/core/_status.py,sha256=a2IDvv_GvUcFuhjQA5bQzWm9ngR6zGc9PR4XcZiaeqk,6557
|
|
25
26
|
ophyd_async/core/_table.py,sha256=ryJ7AwJBglQUzwP9_aSjR8cu8EKvYXfo1q1byhke3Uc,7248
|
|
26
|
-
ophyd_async/core/_utils.py,sha256=
|
|
27
|
+
ophyd_async/core/_utils.py,sha256=xv03NYanpeKEsErZkpkkGffwdSs7UElHtJQZ--1KLz8,11207
|
|
27
28
|
ophyd_async/core/_yaml_settings.py,sha256=Qojhku9l5kPSkTnEylCRWTe0gpw6S_XP5av5dPpqFgQ,2089
|
|
28
29
|
ophyd_async/epics/__init__.py,sha256=ou4yEaH9VZHz70e8oM614-arLMQvUfQyXhRJsnEpWn8,60
|
|
29
|
-
ophyd_async/epics/motor.py,sha256=
|
|
30
|
+
ophyd_async/epics/motor.py,sha256=ZFr6n3IE3qW68sRwNEj_8OnJOQebmkswCMK9qXP0ZqA,11803
|
|
30
31
|
ophyd_async/epics/signal.py,sha256=0A-supp9ajr63O6aD7F9oG0-Q26YmRjk-ZGh57-jo1Y,239
|
|
31
32
|
ophyd_async/epics/adandor/__init__.py,sha256=dlitllrAdhvh16PAcVMUSSEytTDNMu6_HuYk8KD1EoY,343
|
|
32
33
|
ophyd_async/epics/adandor/_andor.py,sha256=TijGjNVxuH-P0X7UACPt9eLLQ449DwMyVhbn1kV7Le8,1245
|
|
@@ -84,7 +85,7 @@ ophyd_async/epics/odin/__init__.py,sha256=7kRqVzwoD8PVtp7Nj9iQWlgbLeoWE_8oiq-B0k
|
|
|
84
85
|
ophyd_async/epics/odin/_odin_io.py,sha256=YDBrS15PnEKe5SHmz397Emh--lZSQEnbR3G7p8pbShY,6533
|
|
85
86
|
ophyd_async/epics/pmac/__init__.py,sha256=GqJTiJudqE9pu050ZNED09F9tKRfazn0wBsojsMH2gg,273
|
|
86
87
|
ophyd_async/epics/pmac/_pmac_io.py,sha256=cbChieNrDWRzrr5Mdsqtm2Azp8sG0KHP9rGeJxmbYrA,4332
|
|
87
|
-
ophyd_async/epics/pmac/_pmac_trajectory.py,sha256=
|
|
88
|
+
ophyd_async/epics/pmac/_pmac_trajectory.py,sha256=DzO6gfvbK8M3Ec6vq0WTlz0RRYGNzP8qDJIMWTWJeLo,8150
|
|
88
89
|
ophyd_async/epics/pmac/_pmac_trajectory_generation.py,sha256=3IIxXa0r6-2uNnILKLGxp3xosOZx8MubKF-F_OM7uaw,27331
|
|
89
90
|
ophyd_async/epics/pmac/_utils.py,sha256=MfuY6NicT7wkwVIWAZkWoCu1ZoSzy6jda1wLK9XAOLA,8614
|
|
90
91
|
ophyd_async/epics/testing/__init__.py,sha256=aTIv4D2DYrpnGco5RQF8QuLG1SfFkIlTyM2uYEKXltA,522
|
|
@@ -97,7 +98,7 @@ ophyd_async/fastcs/core.py,sha256=pL_srtTrfuoBHUjDFpxES92owFq9M4Jve0Skk1oeuFA,51
|
|
|
97
98
|
ophyd_async/fastcs/eiger/__init__.py,sha256=RxwOFjERKy5tUD_IDGCGuMh716FaZgCq7R9elPixBwo,312
|
|
98
99
|
ophyd_async/fastcs/eiger/_eiger.py,sha256=jo3K5dM3Co_RDYIyO6poCVDqp2g_1z4MqnYftwnMhUk,1103
|
|
99
100
|
ophyd_async/fastcs/eiger/_eiger_controller.py,sha256=Cucj-1M-1CaxSJxHZmHs3f_OXwtTIspcqUFhRNGzn_E,2361
|
|
100
|
-
ophyd_async/fastcs/eiger/_eiger_io.py,sha256=
|
|
101
|
+
ophyd_async/fastcs/eiger/_eiger_io.py,sha256=mVgDC296B4RkSObWBiA7AXtVRTQw388lJPw2roQctFs,1249
|
|
101
102
|
ophyd_async/fastcs/jungfrau/__init__.py,sha256=xwTaPiqvtyyljP2acz07FSlUW79Io8EsKks9ENgbumA,765
|
|
102
103
|
ophyd_async/fastcs/jungfrau/_controller.py,sha256=TvUxRuP3NJFTOcyHeMn5-1Va7HzOJswWCYSGdp1NMFI,5778
|
|
103
104
|
ophyd_async/fastcs/jungfrau/_jungfrau.py,sha256=KAHCmRHMyzIh-r2JXVJcQOGLkCOOdW5Mao_KChITO2s,929
|
|
@@ -106,7 +107,7 @@ ophyd_async/fastcs/jungfrau/_utils.py,sha256=QpdWbPT_31Jwyi7INFMRq9hncSZIK_4J3l6
|
|
|
106
107
|
ophyd_async/fastcs/odin/__init__.py,sha256=da1PTClDMl-IBkrSvq6JC1lnS-K_BASzCvxVhNxN5Ls,13
|
|
107
108
|
ophyd_async/fastcs/panda/__init__.py,sha256=GbnPqH_13wvyPK1CvRHGAViamKVWHY9n-sTmfAdcnMA,1229
|
|
108
109
|
ophyd_async/fastcs/panda/_block.py,sha256=Bffta9IkuSq_NSvidDvLyC1YUrfQCwMhppsu1Te7vec,2679
|
|
109
|
-
ophyd_async/fastcs/panda/_control.py,sha256=
|
|
110
|
+
ophyd_async/fastcs/panda/_control.py,sha256=lUogRZMkQk4eZFghTuhwSDLqxR16-DQvx9MyFpg10Qc,1387
|
|
110
111
|
ophyd_async/fastcs/panda/_hdf_panda.py,sha256=tL_OWHxlMQcMZGq9sxHLSeag6hP9MRIbTPn1W0u0iNI,1237
|
|
111
112
|
ophyd_async/fastcs/panda/_table.py,sha256=maKGoKypEuYqTSVWGgDO6GMEKOtlDm9Dn5YiYdBzu6c,2486
|
|
112
113
|
ophyd_async/fastcs/panda/_trigger.py,sha256=iBxW4YMfRYrpg7AoQaHb7rHKCE95UbSxguRuR9FOgw8,7610
|
|
@@ -131,11 +132,11 @@ ophyd_async/sim/_pattern_generator.py,sha256=kuxvyX2gIxrywhQRhaO1g8YluBT7LBkE20I
|
|
|
131
132
|
ophyd_async/sim/_point_detector.py,sha256=wMG_ncvm99WMCPihlFyuMEf3UknAxCpB1hpk3uKiENE,3024
|
|
132
133
|
ophyd_async/sim/_stage.py,sha256=_SywbmSQwxf7JLx68qwo0RpiB3oIWlbTLmvRKxUoig0,1602
|
|
133
134
|
ophyd_async/tango/__init__.py,sha256=g9xzjlzPpUAP12YI-kYwfAoLSYPAQdL1S11R2c-cius,60
|
|
134
|
-
ophyd_async/tango/core/__init__.py,sha256=
|
|
135
|
+
ophyd_async/tango/core/__init__.py,sha256=cgO5GWfEZqjH0Aj9KUeoZwxMrOQOTn9V9kaYel7j0x4,1473
|
|
135
136
|
ophyd_async/tango/core/_base_device.py,sha256=X5ncxaWKOfRhhqPyT8tmTBJGc3ldGthw1ZCe_j_M2Tg,5088
|
|
136
137
|
ophyd_async/tango/core/_converters.py,sha256=xI_RhMR8dY6IVORUZVVCL9LdYnEE6TA6BBPX_lTu06w,2183
|
|
137
138
|
ophyd_async/tango/core/_signal.py,sha256=8mIxRVEVjhDN33LDbbKZWGMUYn9Gl5ZMEIYw6GSBTUE,5569
|
|
138
|
-
ophyd_async/tango/core/_tango_transport.py,sha256=
|
|
139
|
+
ophyd_async/tango/core/_tango_transport.py,sha256=fPICZzsF9Rf53sHtM3NXlKmhF-8CNO2prra3msD74R0,37177
|
|
139
140
|
ophyd_async/tango/core/_utils.py,sha256=pwT7V1DNWSyPOSzvDZ6OsDZTjaV-pAeDLDlmgtHVcNM,1673
|
|
140
141
|
ophyd_async/tango/demo/__init__.py,sha256=_j-UicTnckuIBp8PnieFMOMnLFGivnaKdmo9o0hYtzc,256
|
|
141
142
|
ophyd_async/tango/demo/_counter.py,sha256=m6zxOJLbHgCEBAapVc1UiOOqKj5lvrlxjA6mXWMRMjo,1200
|
|
@@ -146,16 +147,15 @@ ophyd_async/tango/demo/_tango/_servers.py,sha256=putvERDyibibaTbhdWyqZB_axj2fURX
|
|
|
146
147
|
ophyd_async/tango/testing/__init__.py,sha256=l52SmX9XuxZUBuLpOYJzHfskkWVYhx3RkSbGL_wUu5Y,199
|
|
147
148
|
ophyd_async/tango/testing/_one_of_everything.py,sha256=eJg5K8n1ExwPfruDCHNZcWjx4aRTA1Vs_7NQHSHjpgc,6851
|
|
148
149
|
ophyd_async/tango/testing/_test_config.py,sha256=i3t5d4wjUEtAvvSSZNz_bH_r5VEvUphUcEOEd8LKxQQ,228
|
|
149
|
-
ophyd_async/testing/__init__.py,sha256=
|
|
150
|
+
ophyd_async/testing/__init__.py,sha256=0x4kehIkNoR_H-gzj0yJ-SmtJxxSBnyeOcxYcNqvgkY,2033
|
|
150
151
|
ophyd_async/testing/__pytest_assert_rewrite.py,sha256=_SU2UfChPgEf7CFY7aYH2B7MLp-07_qYnVLyu6QtDL8,129
|
|
151
152
|
ophyd_async/testing/_assert.py,sha256=Ss_XDToi1ymUfr0Z1r45A2Fmg7-9UOv9gYkJEBsZPv8,8795
|
|
152
|
-
ophyd_async/testing/_mock_signal_utils.py,sha256=GOjELaRFg9zJKcpeLFXjN7ViMT1AK2Hu52lkLMI5XUc,5393
|
|
153
153
|
ophyd_async/testing/_one_of_everything.py,sha256=U9ui7B-iNHDM3H3hIWUuaCb8Gc2eLlUh0sBHUlQldT0,4741
|
|
154
154
|
ophyd_async/testing/_single_derived.py,sha256=5-HOTzgePcZ354NK_ssVpyIbJoJmKyjVQCxSwQXUC-4,2730
|
|
155
155
|
ophyd_async/testing/_utils.py,sha256=zClRo5ve8RGia7wQnby41W-Zprj-slOA5da1LfYnuhw,45
|
|
156
156
|
ophyd_async/testing/_wait_for_pending.py,sha256=YZAR48n-CW0GsPey3zFRzMJ4byDAr3HvMIoawjmTrHw,732
|
|
157
|
-
ophyd_async-0.
|
|
158
|
-
ophyd_async-0.
|
|
159
|
-
ophyd_async-0.
|
|
160
|
-
ophyd_async-0.
|
|
161
|
-
ophyd_async-0.
|
|
157
|
+
ophyd_async-0.14.1.dist-info/licenses/LICENSE,sha256=pU5shZcsvWgz701EbT7yjFZ8rMvZcWgRH54CRt8ld_c,1517
|
|
158
|
+
ophyd_async-0.14.1.dist-info/METADATA,sha256=I2Y_2-lFXNeZYNYDhNxPvrubLM8bd8d5OzPbPzdn0mM,5703
|
|
159
|
+
ophyd_async-0.14.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
160
|
+
ophyd_async-0.14.1.dist-info/top_level.txt,sha256=-hjorMsv5Rmjo3qrgqhjpal1N6kW5vMxZO3lD4iEaXs,12
|
|
161
|
+
ophyd_async-0.14.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|