Skip to content

Commit 97d4c40

Browse files
Merge pull request #295 from ISISComputingGroup/dependabot/pip/ophyd-async-ca--0.14.0
Bump ophyd-async[ca] from 0.13.6 to 0.14.0
2 parents 8469723 + 4525485 commit 97d4c40

File tree

16 files changed

+20
-30
lines changed

16 files changed

+20
-30
lines changed

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
intersphinx_mapping = {
9090
"python": ("https://docs.python.org/3", None),
9191
"bluesky": ("https://blueskyproject.io/bluesky/main/", None),
92-
"ophyd_async": ("https://blueskyproject.io/ophyd-async/v0.13.4/", None),
92+
"ophyd_async": ("https://blueskyproject.io/ophyd-async/v0.14.0/", None),
9393
"event_model": ("https://blueskyproject.io/event-model/main/", None),
9494
"scipp": ("https://scipp.github.io/", None),
9595
"scippneutron": ("https://scipp.github.io/scippneutron/", None),

doc/dev/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ If you forget to do this, you will get a stack trace containing:
209209
NotImplementedError: No PV has been set as connect() has not been called
210210
```
211211

212-
### Debug {py:obj}`~ophyd_async.core.NotConnected` errors
212+
### Debug {py:obj}`~ophyd_async.core.NotConnectedError` errors
213213

214214
If {py:obj}`ophyd_async` cannot connect to a PV, you will get an error that looks like:
215215

doc/devices/blocks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ type `float`, and as such does not take a type argument (unlike the other block
119119
{external+bluesky:py:obj}`~bluesky.protocols.Checkable` means that moves which would eventually violate limits can be detected by
120120
bluesky simulators, before the plan ever runs. This can help to catch errors before
121121
the plan is executed against hardware. There is also limit-checking at runtime;
122-
a {external+ophyd_async:py:obj}`~ophyd_async.epics.motor.MotorLimitsException` will be raised
122+
a {external+ophyd_async:py:obj}`~ophyd_async.epics.motor.MotorLimitsError` will be raised
123123
at runtime if a requested position is outside the motor's limits.
124124

125125
{external+bluesky:py:obj}`~bluesky.protocols.Stoppable` means that the motor can be asked to stop by bluesky. Plans may choose to execute

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ classifiers = [
4242
dependencies = [
4343
"bluesky", # Bluesky framework
4444
"bluesky-kafka", # Bluesky-kafka integration
45-
"ophyd-async[ca] == 0.13.6", # Device abstraction. When changing, also change in doc/conf.py
45+
"ophyd-async[ca] == 0.14.0", # Device abstraction. When changing, also change in doc/conf.py
4646
"lmfit", # Fitting
4747
"matplotlib", # Plotting
4848
"msgpack-numpy", # Encoding kafka messages

src/ibex_bluesky_core/devices/block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def set( # pyright: ignore
484484
This is needed so that type-checker correctly understands the type of set.
485485
486486
This method will raise
487-
:external+ophyd_async:py:obj:`ophyd_async.epics.motor.MotorLimitsException`
487+
:external+ophyd_async:py:obj:`ophyd_async.epics.motor.MotorLimitsError`
488488
if the requested position was outside the motor's limits.
489489
"""
490490
return super().set(value, timeout)

tests/devices/simpledae/test_controllers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pytest
2-
from ophyd_async.testing import get_mock_put, set_mock_value
2+
from ophyd_async.core import get_mock_put, set_mock_value
33

44
from ibex_bluesky_core.devices.dae import BeginRunExBits, RunstateEnum
55
from ibex_bluesky_core.devices.simpledae import (

tests/devices/simpledae/test_reducers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import numpy as np
77
import pytest
88
import scipp as sc
9-
from ophyd_async.testing import get_mock_put, set_mock_value
9+
from ophyd_async.core import get_mock_put, set_mock_value
1010

1111
from ibex_bluesky_core.devices.simpledae import (
1212
VARIANCE_ADDITION,

tests/devices/simpledae/test_simpledae.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from unittest.mock import AsyncMock, MagicMock, patch
22

33
import pytest
4-
from ophyd_async.core import Device, StandardReadable, soft_signal_rw
5-
from ophyd_async.testing import set_mock_value
4+
from ophyd_async.core import Device, StandardReadable, set_mock_value, soft_signal_rw
65

76
from ibex_bluesky_core.devices.dae import Dae, DaeCheckingSignal
87
from ibex_bluesky_core.devices.simpledae import (

tests/devices/simpledae/test_waiters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22

33
import pytest
4-
from ophyd_async.testing import set_mock_value
4+
from ophyd_async.core import set_mock_value
55

66
from ibex_bluesky_core.devices.simpledae import (
77
GoodUahWaiter,

tests/devices/test_block.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
import bluesky.plan_stubs as bps
66
import bluesky.plans as bp
7-
import ophyd_async
87
import pytest
9-
from ophyd_async.testing import get_mock_put, set_mock_value
8+
from ophyd_async.core import get_mock_put, set_mock_value
9+
from ophyd_async.epics.motor import MotorLimitsError
1010

1111
from ibex_bluesky_core.devices.block import (
1212
GLOBAL_MOVING_FLAG_PRE_WAIT,
@@ -353,21 +353,13 @@ async def test_block_mot_set_within_limits(mot_block):
353353

354354

355355
async def test_block_mot_set_outside_limits(mot_block):
356-
# Local import as API not available in older ophyd_async versions
357-
if ophyd_async._version.version_tuple >= (0, 13, 5):
358-
from ophyd_async.epics.motor import MotorLimitsError # pyright: ignore # noqa PLC0415
359-
360-
err = MotorLimitsError
361-
else:
362-
from ophyd_async.epics.motor import MotorLimitsException # pyright: ignore # noqa PLC0415
363-
364-
err = MotorLimitsException
365-
366356
set_mock_value(mot_block.user_setpoint, 10)
367357
set_mock_value(mot_block.velocity, 10)
358+
set_mock_value(mot_block.dial_high_limit_travel, 15)
359+
set_mock_value(mot_block.dial_low_limit_travel, 5)
368360
set_mock_value(mot_block.high_limit_travel, 15)
369361
set_mock_value(mot_block.low_limit_travel, 5)
370-
with pytest.raises(err):
362+
with pytest.raises(MotorLimitsError):
371363
await mot_block.set(20)
372364

373365

0 commit comments

Comments
 (0)