Skip to content

Commit

Permalink
apply the skp device decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Jul 30, 2024
1 parent 411b7b1 commit 703a2fc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/dodal/beamlines/i22.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def saxs(
)


# todo this is not available at p38
@skip_device(IS_LAB)
def synchrotron(
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False
) -> Synchrotron:
Expand Down Expand Up @@ -355,14 +355,11 @@ def panda3(
)


@skip_device()
@skip_device(IS_LAB)
def panda4(
wait_for_connection: bool = True,
fake_with_ophyd_sim: bool = False,
) -> HDFPanda:
# todo skip if at p38
if IS_LAB:
raise SystemError("no panda4 at the p38 lab")
return device_instantiation(
HDFPanda,
"panda4",
Expand Down

0 comments on commit 703a2fc

Please sign in to comment.