Skip to content

Commit

Permalink
Merge pull request #1226 from thomashopkins32/fix_pyepics_error_handling
Browse files Browse the repository at this point in the history
Add messages to dummy control layer NotImplementedError to install either pyepics or caproto
  • Loading branch information
tacaswell authored Dec 11, 2024
2 parents 902d299 + 848488e commit 1e5f037
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions ophyd/_dummy_shim.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,27 @@ def setup(logger):


def caget(*args, **kwargs):
raise NotImplementedError
raise NotImplementedError(
"Dummy control layer in-use. Try installing either pyepics or caproto."
)


def caput(*args, **kwargs):
raise NotImplementedError
raise NotImplementedError(
"Dummy control layer in-use. Try installing either pyepics or caproto."
)


def get_pv(*args, **kwargs):
raise NotImplementedError
raise NotImplementedError(
"Dummy control layer in-use. Try installing either pyepics or caproto."
)


def release_pvs(*args, **kwargs):
raise NotImplementedError
raise NotImplementedError(
"Dummy control layer in-use. Try installing either pyepics or caproto."
)


def get_dispatcher():
Expand Down

0 comments on commit 1e5f037

Please sign in to comment.