diff --git a/ophyd_devices/epics/devices/SpmBase.py b/ophyd_devices/epics/devices/SpmBase.py index 83e7b0c..55385e2 100644 --- a/ophyd_devices/epics/devices/SpmBase.py +++ b/ophyd_devices/epics/devices/SpmBase.py @@ -57,9 +57,7 @@ class SpmSim(SpmBase): # Define normalized 2D gaussian def gaus2d(x=0, y=0, mx=0, my=0, sx=1, sy=1): - return np.exp( - -((x - mx) ** 2.0 / (2.0 * sx**2.0) + (y - my) ** 2.0 / (2.0 * sy**2.0)) - ) + return np.exp(-((x - mx) ** 2.0 / (2.0 * sx**2.0) + (y - my) ** 2.0 / (2.0 * sy**2.0))) # Generator for dynamic values self._MX = 0.75 * self._MX + 0.25 * (10.0 * np.random.random() - 5.0) diff --git a/ophyd_devices/epics/devices/X07MADevices.py b/ophyd_devices/epics/devices/X07MADevices.py index 296cc43..c7d03e8 100644 --- a/ophyd_devices/epics/devices/X07MADevices.py +++ b/ophyd_devices/epics/devices/X07MADevices.py @@ -1,6 +1,7 @@ """ ophyd device classes for X07MA beamline """ + import time import traceback from collections import OrderedDict diff --git a/ophyd_devices/epics/devices/XbpmBase.py b/ophyd_devices/epics/devices/XbpmBase.py index 92d9e17..1237387 100644 --- a/ophyd_devices/epics/devices/XbpmBase.py +++ b/ophyd_devices/epics/devices/XbpmBase.py @@ -87,9 +87,7 @@ class XbpmSim(XbpmBase): # define normalized 2D gaussian def gaus2d(x=0, y=0, mx=0, my=0, sx=1, sy=1): - return np.exp( - -((x - mx) ** 2.0 / (2.0 * sx**2.0) + (y - my) ** 2.0 / (2.0 * sy**2.0)) - ) + return np.exp(-((x - mx) ** 2.0 / (2.0 * sx**2.0) + (y - my) ** 2.0 / (2.0 * sy**2.0))) # Generator for dynamic values self._MX = 0.75 * self._MX + 0.25 * (10.0 * np.random.random() - 5.0) diff --git a/ophyd_devices/utils/socket.py b/ophyd_devices/utils/socket.py index 74556b0..5afef82 100644 --- a/ophyd_devices/utils/socket.py +++ b/ophyd_devices/utils/socket.py @@ -86,12 +86,10 @@ class SocketSignal(abc.ABC, Signal): SUB_SETPOINT = "setpoint" @abc.abstractmethod - def _socket_get(self): - ... + def _socket_get(self): ... @abc.abstractmethod - def _socket_set(self, val): - ... + def _socket_set(self, val): ... def get(self): self._readback = self._socket_get()