Skip to content

Commit

Permalink
highlighted uncertainity points
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Jun 27, 2024
1 parent 1dcddae commit 656f918
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dodal/beamlines/example_beamline.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ def initalize_device(
post_create: Optional[Callable[[T], None]] = None,
) -> T:
assert self.config is not None

# todo add fake and cache logic
cached_device = self.see_if_device_is_in_cache(self.config.name)
# todo should we run the post-create again if we recover from cache?
if self.config.fake:
# todo not sure what is the ophyd-2 faking logic
pass
device = factory()
if self.config.lazy:
print(f"Device {factory.__name__} is lazy, not initalizing now")
Expand Down

0 comments on commit 656f918

Please sign in to comment.