reactor: rerun formatting with black24
This commit is contained in:
parent
b8d7146bd8
commit
710beb8370
@ -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)
|
||||
|
@ -1,6 +1,7 @@
|
||||
"""
|
||||
ophyd device classes for X07MA beamline
|
||||
"""
|
||||
|
||||
import time
|
||||
import traceback
|
||||
from collections import OrderedDict
|
||||
|
@ -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)
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user