コード例 #1
0
    def epics_version(self):
        import epics
        from epics.ca import find_libca

        dllname = find_libca()
        # print "DLL NAME", dllname
        return epics.__version__, dllname
コード例 #2
0
import atexit
import logging
import threading
import warnings

import epics
from epics import caget, caput, ca, dbr  # noqa

from ._dispatch import _CallbackThread, EventDispatcher, wrap_callback

try:
    ca.find_libca()
except ca.ChannelAccessException:
    raise ImportError('libca not found; pyepics is unavailable')
else:
    thread_class = ca.CAThread

module_logger = logging.getLogger(__name__)
name = 'pyepics'
_dispatcher = None


def get_dispatcher():
    'The event dispatcher for the pyepics control layer'
    return _dispatcher


class PyepicsCallbackThread(_CallbackThread):
    def attach_context(self):
        super().attach_context()
        ca.attach_context(self.context)
コード例 #3
0
ファイル: _pyepics_shim.py プロジェクト: NSLS-II/ophyd
import atexit
import logging
import threading
import warnings

import epics
from epics import caget, caput, ca, dbr  # noqa

from ._dispatch import _CallbackThread, EventDispatcher, wrap_callback

try:
    ca.find_libca()
except ca.ChannelAccessException:
    raise ImportError('libca not found; pyepics is unavailable')
else:
    thread_class = ca.CAThread


module_logger = logging.getLogger(__name__)
name = 'pyepics'
_dispatcher = None


def get_dispatcher():
    'The event dispatcher for the pyepics control layer'
    return _dispatcher


class PyepicsCallbackThread(_CallbackThread):
    def attach_context(self):
        super().attach_context()