reactor: rerun formatting with black24

This commit is contained in:
appel_c 2024-01-26 11:31:54 +01:00
parent b8d7146bd8
commit 710beb8370
4 changed files with 5 additions and 10 deletions

View File

@ -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)

View File

@ -1,6 +1,7 @@
"""
ophyd device classes for X07MA beamline
"""
import time
import traceback
from collections import OrderedDict

View File

@ -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)

View File

@ -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()