Skip to content

Commit

Permalink
Fix more panda uri/prefix changes, beamstop enum
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuck99 committed Oct 25, 2024
1 parent 0e602dd commit 3732d8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/dodal/beamlines/i22.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ def fswitch() -> FSwitch:
@device_factory()
def panda1() -> HDFPanda:
return HDFPanda(
prefix="",
uri=f"{PREFIX.beamline_prefix}-EA-PANDA-01:",
path_provider=get_path_provider(),
)
Expand All @@ -206,7 +205,6 @@ def panda1() -> HDFPanda:
@device_factory(skip=True)
def panda2() -> HDFPanda:
return HDFPanda(
prefix="",
uri=f"{PREFIX.beamline_prefix}-EA-PANDA-02:",
path_provider=get_path_provider(),
)
Expand All @@ -215,7 +213,6 @@ def panda2() -> HDFPanda:
@device_factory(skip=True)
def panda3() -> HDFPanda:
return HDFPanda(
prefix="",
uri=f"{PREFIX.beamline_prefix}-EA-PANDA-03:",
path_provider=get_path_provider(),
)
Expand All @@ -224,7 +221,6 @@ def panda3() -> HDFPanda:
@device_factory(skip=True)
def panda4() -> HDFPanda:
return HDFPanda(
prefix="",
uri=f"{PREFIX.beamline_prefix}-EA-PANDA-04:",
path_provider=get_path_provider(),
)
Expand Down
6 changes: 2 additions & 4 deletions src/dodal/devices/i24/beamstop.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from enum import Enum

from ophyd_async.core import StandardReadable
from ophyd_async.core import StandardReadable, StrictEnum
from ophyd_async.epics.motor import Motor
from ophyd_async.epics.signal import epics_signal_rw


class BeamstopPositions(str, Enum):
class BeamstopPositions(StrictEnum):
CHECK_BEAM = "CheckBeam"
DATA_COLLECTION = "Data Collection"
DATA_COLLECTION_FAR = "Data Collection Far"
Expand Down

0 comments on commit 3732d8f

Please sign in to comment.