Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
(DiamondLightSource/dodal#271) Changes after rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuck99 committed Jan 5, 2024
1 parent 4c51fd6 commit a408bd1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ install_requires =
xarray
doct
databroker
dls-dodal @ git+https://github.com/DiamondLightSource/dodal.git@65287cc1c67b095f9071452b9236dc4cfdbf0d4b
dls-dodal @ git+https://github.com/DiamondLightSource/dodal.git@12bbf4cd438456186f8ca694789b20b0708063f8
pydantic<2.0 # See https://github.com/DiamondLightSource/hyperion/issues/774
scipy

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import json

import bluesky.plan_stubs as bps
from dodal.beamlines.beamline_parameters import (
GDABeamlineParameters,
)
from dodal.devices.DCM import DCM, fixed_offset_from_beamline_params
from dodal.devices.focusing_mirror import (
FocusingMirror,
Expand All @@ -13,9 +16,6 @@
)

from hyperion.log import LOGGER
from hyperion.parameters.beamline_parameters import (
GDABeamlineParameters,
)

MIRROR_VOLTAGE_GROUP = "MIRROR_VOLTAGE_GROUP"
DCM_GROUP = "DCM_GROUP"
Expand Down
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from bluesky.run_engine import RunEngine
from bluesky.utils import Msg
from dodal.beamlines import beamline_utils, i03
from dodal.beamlines.beamline_parameters import GDABeamlineParameters
from dodal.devices.aperturescatterguard import AperturePositions
from dodal.devices.attenuator import Attenuator
from dodal.devices.backlight import Backlight
Expand Down Expand Up @@ -39,7 +40,6 @@
NEXUS_LOGGER,
set_up_logging_handlers,
)
from hyperion.parameters.beamline_parameters import GDABeamlineParameters
from hyperion.parameters.external_parameters import from_file as raw_params_from_file
from hyperion.parameters.plan_specific.grid_scan_with_edge_detect_params import (
GridScanWithEdgeDetectInternalParameters,
Expand Down Expand Up @@ -582,7 +582,8 @@ def mock_message_generator(
) -> Callable[..., Generator[Msg, object, object]]:
"""Returns a callable that returns a generator yielding a Msg object recording the call arguments.
This can be used to mock methods returning a bluesky plan or portion thereof, call it from within a unit test
using the RunEngineSimulator, and then perform asserts on the message to verify in-order execution of the plan"""
using the RunEngineSimulator, and then perform asserts on the message to verify in-order execution of the plan
"""

def mock_method(*args, **kwargs):
yield Msg(function_name, None, *args, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import pytest
from bluesky.run_engine import RunEngine
from dodal.beamlines.beamline_parameters import GDABeamlineParameters
from dodal.devices.DCM import DCM
from dodal.devices.focusing_mirror import (
DEMAND_ACCEPTED_OK,
Expand All @@ -19,7 +20,6 @@
adjust_dcm_pitch_roll_vfm_from_lut,
adjust_mirror_stripe,
)
from hyperion.parameters.beamline_parameters import GDABeamlineParameters


def test_apply_and_wait_for_voltages_to_settle_happy_path(
Expand Down

0 comments on commit a408bd1

Please sign in to comment.