Skip to content

Commit c90f129

Browse files
chore(deps): Update ophyd-async dependency (#1255)
Fixes #1254, requires a release of dodal including DiamondLightSource/dodal#1666
1 parent d073d00 commit c90f129

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

dev-requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ aiohappyeyeballs==2.6.1
55
aiohttp==3.12.15
66
aiosignal==1.4.0
77
alabaster==1.0.0
8+
annotated-doc==0.0.3
89
annotated-types==0.7.0
910
anyio==4.11.0
1011
asgiref==3.9.2
@@ -38,7 +39,7 @@ dataclasses-json==0.6.7
3839
deepdiff==8.6.1
3940
deepmerge==2.0
4041
distlib==0.4.0
41-
dls-dodal==1.60.0
42+
dls-dodal==1.64.0
4243
dnspython==2.8.0
4344
docopt==0.6.2
4445
docutils==0.21.2
@@ -123,7 +124,7 @@ opentelemetry-sdk==1.37.0
123124
opentelemetry-semantic-conventions==0.58b0
124125
opentelemetry-util-http==0.58b0
125126
ophyd==1.11.0
126-
ophyd-async==0.13.3
127+
ophyd-async==0.13.5
127128
orderly-set==5.5.0
128129
orjson==3.11.3
129130
p4p==4.2.1
@@ -186,6 +187,7 @@ ruff==0.13.3
186187
scanspec==0.9.0
187188
semver==3.0.4
188189
sentry-sdk==2.39.0
190+
setuptools==80.9.0
189191
setuptools_dso==2.12.2
190192
shellingham==1.5.4
191193
six==1.17.0

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description = "Lightweight bluesky-as-a-service wrapper application. Also usable
1414
dependencies = [
1515
"tiled[client]",
1616
"bluesky[plotting]>=1.14.0", # plotting includes matplotlib, required for BestEffortCallback in run plans
17-
"ophyd-async",
17+
"ophyd-async>=0.13.5",
1818
"aioca",
1919
"pydantic>=2.0",
2020
"scanspec>=0.9.0",
@@ -25,7 +25,7 @@ dependencies = [
2525
"fastapi>=0.112.0",
2626
"uvicorn",
2727
"requests",
28-
"dls-dodal>=1.60.0",
28+
"dls-dodal>=1.64.0",
2929
"super-state-machine", # https://github.com/DiamondLightSource/blueapi/issues/553
3030
"GitPython",
3131
"event-model==1.23.1", # https://github.com/DiamondLightSource/blueapi/issues/684

src/blueapi/core/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from bluesky.run_engine import RunEngine
1111
from dodal.common.beamlines.beamline_utils import get_path_provider, set_path_provider
1212
from dodal.utils import AnyDevice, make_all_devices
13-
from ophyd_async.core import NotConnected
13+
from ophyd_async.core import NotConnectedError
1414
from pydantic import BaseModel, GetCoreSchemaHandler, GetJsonSchemaHandler, create_model
1515
from pydantic.fields import FieldInfo
1616
from pydantic.json_schema import JsonSchemaValue, SkipJsonSchema
@@ -240,7 +240,7 @@ def with_dodal_module(
240240
LOGGER.warning(
241241
f"{len(exceptions)} exceptions occurred while instantiating devices"
242242
)
243-
LOGGER.exception(NotConnected(exceptions))
243+
LOGGER.exception(NotConnectedError(exceptions))
244244
return devices, exceptions
245245

246246
def register_plan(self, plan: PlanGenerator) -> PlanGenerator:

src/blueapi/utils/connect_devices.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
collect_factories,
1010
filter_ophyd_devices,
1111
)
12-
from ophyd_async.core import NotConnected
12+
from ophyd_async.core import NotConnectedError
1313
from ophyd_async.plan_stubs import ensure_connected
1414

1515
LOGGER = logging.getLogger(__name__)
@@ -46,7 +46,7 @@ def _establish_device_connections(
4646
# Connect ophyd-async devices
4747
try:
4848
RE(ensure_connected(*ophyd_async_devices.values(), mock=sim_backend))
49-
except NotConnected as ex:
49+
except NotConnectedError as ex:
5050
exceptions = {**exceptions, **ex.sub_errors}
5151

5252
# Only return the subset of devices that haven't raised an exception

0 commit comments

Comments
 (0)