Skip to content

Commit

Permalink
Convert flux to device_factory
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuck99 committed Jan 13, 2025
1 parent 9c0d285 commit 089c9a0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/mx_bluesky/hyperion/utils/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def fake_create_rotation_devices():
detector_motion = i03.detector_motion(connect_immediately=True, mock=True)
backlight = i03.backlight(mock=True)
attenuator = i03.attenuator(connect_immediately=True, mock=True)
flux = i03.flux(fake_with_ophyd_sim=True)
flux = i03.flux(connect_immediately=True, mock=True)
undulator = i03.undulator(connect_immediately=True, mock=True)
aperture_scatterguard = i03.aperture_scatterguard(
connect_immediately=True, mock=True
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def oav(test_config_files, RE):

@pytest.fixture
def flux():
return i03.flux(fake_with_ophyd_sim=True)
return i03.flux(connect_immediately=True, mock=True)


@pytest.fixture
Expand Down Expand Up @@ -815,7 +815,7 @@ async def fake_fgs_composite(
zebra_fast_grid_scan=i03.zebra_fast_grid_scan(
connect_immediately=True, mock=True
),
flux=i03.flux(fake_with_ophyd_sim=True),
flux=i03.flux(connect_immediately=True, mock=True),
s4_slit_gaps=s4_slit_gaps,
smargon=smargon,
undulator=i03.undulator(connect_immediately=True, mock=True),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def fxc_composite():
dcm=i03.dcm(fake_with_ophyd_sim=True),
eiger=i03.eiger(),
zebra_fast_grid_scan=i03.zebra_fast_grid_scan(),
flux=i03.flux(fake_with_ophyd_sim=True),
flux=i03.flux(connect_immediately=True, mock=True),
robot=i03.robot(connect_immediately=True, mock=True),
panda=i03.panda(connect_immediately=True, mock=True),
panda_fast_grid_scan=i03.panda_fast_grid_scan(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def test_getting_data_for_ispyb():
synchrotron = i03.synchrotron(connect_immediately=True, mock=True)
slit_gaps = S4SlitGaps(f"{CONST.SIM.BEAMLINE}-AL-SLITS-04:", name="slits")
attenuator = i03.attenuator(connect_immediately=True, mock=True)
flux = i03.flux(fake_with_ophyd_sim=True)
flux = i03.flux(connect_immediately=True, mock=True)
dcm = i03.dcm(fake_with_ophyd_sim=True)
aperture_scatterguard = ApertureScatterguard(
prefix="BL03S",
Expand Down

0 comments on commit 089c9a0

Please sign in to comment.