mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-06-12 14:27:14 +02:00
fix: add prefix to signature of PSIDeviceBase
This commit is contained in:
@ -36,7 +36,7 @@ class PSIDeviceBase(Device):
|
|||||||
SUB_DEVICE_MONITOR_2D = "device_monitor_2d"
|
SUB_DEVICE_MONITOR_2D = "device_monitor_2d"
|
||||||
_default_sub = SUB_VALUE
|
_default_sub = SUB_VALUE
|
||||||
|
|
||||||
def __init__(self, name: str, scan_info: ScanInfo | None = None, **kwargs): # type: ignore
|
def __init__(self, *, name: str, prefix: str = "", scan_info: ScanInfo | None = None, **kwargs): # type: ignore
|
||||||
"""
|
"""
|
||||||
Initialize the PSI Device Base class.
|
Initialize the PSI Device Base class.
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ class PSIDeviceBase(Device):
|
|||||||
name (str) : Name of the device
|
name (str) : Name of the device
|
||||||
scan_info (ScanInfo): The scan info to use.
|
scan_info (ScanInfo): The scan info to use.
|
||||||
"""
|
"""
|
||||||
super().__init__(name=name, **kwargs)
|
super().__init__(prefix=prefix, name=name, **kwargs)
|
||||||
self._stopped = False
|
self._stopped = False
|
||||||
self.task_handler = TaskHandler(parent=self)
|
self.task_handler = TaskHandler(parent=self)
|
||||||
self.file_utils = FileHandler()
|
self.file_utils = FileHandler()
|
||||||
|
Reference in New Issue
Block a user