Skip to content

Commit

Permalink
Change undulator default lookup table path to os.devnull
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuck99 committed Oct 25, 2024
1 parent 9437d90 commit a912bfb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/dodal/beamlines/i04_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def undulator(
f"{BeamlinePrefix(BL).insertion_prefix}-MO-SERVC-01:",
wait_for_connection,
fake_with_ophyd_sim,
id_gap_lookup_table_path="SPECIFY_ME",
bl_prefix=False,
)

Expand Down
1 change: 0 additions & 1 deletion src/dodal/beamlines/p38.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ def undulator(
f"{BeamlinePrefix(BL).insertion_prefix}-MO-SERVC-01:",
wait_for_connection,
fake_with_ophyd_sim,
id_gap_lookup_table_path="SPECIFY_ME",
bl_prefix=False,
poles=80,
length=2.0,
Expand Down
3 changes: 2 additions & 1 deletion src/dodal/devices/undulator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from enum import Enum

import numpy as np
Expand Down Expand Up @@ -54,7 +55,7 @@ class Undulator(StandardReadable, Movable):
def __init__(
self,
prefix: str,
id_gap_lookup_table_path: str,
id_gap_lookup_table_path: str = os.devnull,
name: str = "",
poles: int | None = None,
length: float | None = None,
Expand Down

0 comments on commit a912bfb

Please sign in to comment.