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

Fix tests #1382

Merged
merged 3 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ install_requires =
xarray
doct
databroker
dls-dodal @ git+https://github.com/DiamondLightSource/dodal.git@c0e5b3a2bbffb848a6037cdc0e8e548ebab5b6f0
dls-dodal @ git+https://github.com/DiamondLightSource/dodal.git
pydantic<2.0 # See https://github.com/DiamondLightSource/hyperion/issues/774
scipy
pyzmq
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def ophyd_pin_tip_detection():
def robot(done_status):
RunEngine() # A RE is needed to start the bluesky loop
robot = i03.robot(fake_with_ophyd_sim=True)
set_mock_value(robot.barcode.bare_signal, ["BARCODE"])
set_mock_value(robot.barcode, "BARCODE")
robot.set = MagicMock(return_value=done_status)
return robot

Expand Down Expand Up @@ -647,7 +647,7 @@ async def mock_complete(result):
fake_composite.fast_grid_scan.position_counter.sim_put(0) # type: ignore
fake_composite.smargon.x.max_velocity.sim_put(10) # type: ignore

set_mock_value(fake_composite.robot.barcode.bare_signal, ["BARCODE"])
set_mock_value(fake_composite.robot.barcode, "BARCODE")

return fake_composite

Expand Down
2 changes: 1 addition & 1 deletion tests/system_tests/experiment_plans/test_fgs_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def fxc_composite():
zocalo=zocalo,
)

await composite.robot.barcode.bare_signal._backend.put(["ABCDEFGHIJ"]) # type: ignore
await composite.robot.barcode._backend.put("ABCDEFGHIJ") # type: ignore
composite.dcm.energy_in_kev.user_readback.sim_put(12.345) # type: ignore

gda_beamline_parameters = GDABeamlineParameters.from_file(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
from hyperion.log import ISPYB_LOGGER
from hyperion.parameters.constants import CONST
from hyperion.parameters.gridscan import ThreeDGridScan
from hyperion.parameters.plan_specific.gridscan_internal_params import (
GridscanInternalParameters,
)
from tests.conftest import create_dummy_scan_spec

from ...conftest import default_raw_params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
)
from hyperion.log import ISPYB_LOGGER
from hyperion.parameters.constants import CONST
from hyperion.parameters.gridscan import PandAGridscanInternalParameters, ThreeDGridScan
from hyperion.parameters.gridscan import ThreeDGridScan

from ...conftest import default_raw_params
from ...system_tests.external_interaction.conftest import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ def test_rotation_scan_nexus_output_compared_to_existing_full_compare(
"sample": {
"beam": {"incident_wavelength": np.isclose},
"transformations": {
"_missing": {"omega_end", "omega_increment_set"},
"_missing": {"omega_end"},
"_ignore": {"omega"},
"omega_increment_set": 0.1,
"omega_end": lambda a, b: np.all(np.isclose(a, b, atol=1e-03)),
},
"sample_omega": {
Expand Down
Loading