Skip to content

Commit

Permalink
Merge branch 'main' into async-xspress
Browse files Browse the repository at this point in the history
  • Loading branch information
canismarko authored Dec 16, 2024
2 parents 5b41597 + 4f413bb commit d35ec69
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ dependencies:
- bluesky-adaptive
- bluesky >=1.8.1
- ophyd >=1.6.3
- ophyd-async >=0.8.0a5
- ophyd-async >=0.9.0a1
- apstools == 1.6.20 # Leave at 1.6.20 until this is fixed: https://github.com/BCDA-APS/apstools/issues/1022
- pcdsdevices # For extra signal types
- pydm >=1.18.0
Expand Down
2 changes: 1 addition & 1 deletion src/firefly/tests/test_grid_scan_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pytest
from bluesky_queueserver_api import BPlan
from ophyd_async.core import set_mock_value
from ophyd_async.testing import set_mock_value
from qtpy import QtCore

from firefly.plans.grid_scan import GridScanDisplay
Expand Down
2 changes: 1 addition & 1 deletion src/firefly/tests/test_line_scan_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest
from bluesky_queueserver_api import BPlan
from ophyd_async.core import set_mock_value
from ophyd_async.testing import set_mock_value
from qtpy import QtCore

from firefly.plans.line_scan import LineScanDisplay
Expand Down
2 changes: 1 addition & 1 deletion src/haven/tests/test_energy_positioner.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio

import pytest
from ophyd_async.core import get_mock_put, set_mock_value
from ophyd_async.testing import get_mock_put, set_mock_value

from haven.devices.energy_positioner import EnergyPositioner
from haven.devices.xray_source import BusyStatus
Expand Down
3 changes: 2 additions & 1 deletion src/haven/tests/test_ion_chamber.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import numpy as np
import pytest
from numpy.testing import assert_allclose
from ophyd_async.core import TriggerInfo, assert_value, get_mock_put, set_mock_value
from ophyd_async.core import TriggerInfo
from ophyd_async.testing import assert_value, get_mock_put, set_mock_value

from haven.devices.ion_chamber import IonChamber

Expand Down
2 changes: 1 addition & 1 deletion src/haven/tests/test_motor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest
from bluesky.protocols import Flyable
from ophyd_async.core import get_mock_put
from ophyd_async.testing import get_mock_put

from haven.devices.motor import HavenMotor
from haven.devices.motor import Motor as AsyncMotor
Expand Down
2 changes: 1 addition & 1 deletion src/haven/tests/test_positioner.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import asyncio

import pytest
from ophyd_async.core import get_mock_put, set_mock_value
from ophyd_async.epics.core import epics_signal_r, epics_signal_rw, epics_signal_x
from ophyd_async.testing import get_mock_put, set_mock_value

from haven.positioner import Positioner

Expand Down
2 changes: 1 addition & 1 deletion src/haven/tests/test_save_motor_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pandas as pd
import pytest
import time_machine
from ophyd_async.core import set_mock_value
from ophyd_async.testing import set_mock_value
from tiled.adapters.mapping import MapAdapter
from tiled.adapters.xarray import DatasetAdapter
from tiled.client import Context, from_context
Expand Down
2 changes: 1 addition & 1 deletion src/haven/tests/test_shutter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from ophyd.utils.errors import ReadOnlyError
from ophyd_async.core import get_mock_put, set_mock_value
from ophyd_async.testing import get_mock_put, set_mock_value

from haven.devices.shutter import PssShutter, ShutterState

Expand Down
3 changes: 2 additions & 1 deletion src/haven/tests/test_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
from unittest.mock import MagicMock

import pytest
from ophyd_async.core import Device, DeviceVector, get_mock_put
from ophyd_async.core import Device, DeviceVector
from ophyd_async.core._signal import soft_signal_rw
from ophyd_async.epics.core import epics_signal_rw, epics_signal_x
from ophyd_async.testing import get_mock_put

from haven.devices.signal import derived_signal_rw, derived_signal_x

Expand Down
2 changes: 1 addition & 1 deletion src/haven/tests/test_srs570.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from unittest import mock

import pytest
from ophyd_async.core import get_mock_put
from ophyd_async.testing import get_mock_put

from haven.devices.srs570 import GainSignal, SRS570PreAmplifier

Expand Down
2 changes: 1 addition & 1 deletion src/haven/tests/test_xray_source.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio

import pytest
from ophyd_async.core import get_mock_put, set_mock_value
from ophyd_async.testing import get_mock_put, set_mock_value

from haven.devices.xray_source import BusyStatus, PlanarUndulator

Expand Down

0 comments on commit d35ec69

Please sign in to comment.