Skip to content

Commit

Permalink
Move beamstop to use an XYZPositioner and remove old device
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicOram committed Jul 22, 2024
1 parent e4c3d5a commit 056e509
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
7 changes: 3 additions & 4 deletions src/dodal/beamlines/i04.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from dodal.devices.aperturescatterguard import AperturePositions, ApertureScatterguard
from dodal.devices.attenuator import Attenuator
from dodal.devices.backlight import Backlight
from dodal.devices.beamstop import BeamStop
from dodal.devices.dcm import DCM
from dodal.devices.detector import DetectorParams
from dodal.devices.detector.detector_motion import DetectorMotion
Expand Down Expand Up @@ -97,14 +96,14 @@ def ipin(wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False) ->

def beamstop(
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False
) -> BeamStop:
) -> XYZPositioner:
"""Get the i04 beamstop device, instantiate it if it hasn't already been.
If this is called when already instantiated in i04, it will return the existing object.
"""
return device_instantiation(
BeamStop,
XYZPositioner,
"beamstop",
"",
"-MO-BS-01:",
wait_for_connection,
fake_with_ophyd_sim,
)
Expand Down
8 changes: 0 additions & 8 deletions src/dodal/devices/beamstop.py

This file was deleted.

0 comments on commit 056e509

Please sign in to comment.