Skip to content

Commit

Permalink
Change i04 oav instatiation
Browse files Browse the repository at this point in the history
  • Loading branch information
noemifrisina committed Oct 25, 2024
1 parent 6f19281 commit f30a519
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/dodal/beamlines/i04.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,11 @@ def zebra(wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False) -


@skip_device(lambda: BL == "s04")
def oav(wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False) -> OAV:
def oav(
wait_for_connection: bool = True,
fake_with_ophyd_sim: bool = False,
params: OAVConfig | None = None,
) -> OAV:
"""Get the i04 OAV device, instantiate it if it hasn't already been.
If this is called when already instantiated in i04, it will return the existing object.
"""
Expand All @@ -355,7 +359,7 @@ def oav(wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False) ->
"",
wait_for_connection,
fake_with_ophyd_sim,
config=OAVConfig(ZOOM_PARAMS_FILE, DISPLAY_CONFIG),
config=params or OAVConfig(ZOOM_PARAMS_FILE, DISPLAY_CONFIG),
)


Expand Down

0 comments on commit f30a519

Please sign in to comment.