Skip to content

Commit

Permalink
set kwarg 'context' if pyepics version is less than 3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jklynch committed Nov 19, 2019
1 parent 8a62bb2 commit 5a2e5c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ophyd/_pyepics_shim.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import atexit
import ctypes
import epics
from distutils.version import LooseVersion
import queue
import threading
import warnings
Expand All @@ -20,6 +20,8 @@


def get_pv(*args, **kwargs):
if not LooseVersion(epics.__version__) >= LooseVersion('3.4.0'):
kwargs.setdefault('context', epics.ca.current_context())
return _get_pv(*args, **kwargs)


Expand Down

0 comments on commit 5a2e5c7

Please sign in to comment.