Skip to content

Commit 79e7fcf

Browse files
author
Peter Braun
committed
remove status from readables
1 parent 4c9f2c0 commit 79e7fcf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/secop_ophyd/SECoPDevices.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,25 @@ def __init__(
309309
)
310310
self.param_devices[parameter] = getattr(self, parameter)
311311

312+
# Add status Sigal (neither config nor read signal)
313+
if "status" in module_desc["parameters"].keys():
314+
315+
properties = module_desc["parameters"][parameter]
316+
317+
# generate new root path
318+
param_path = Path(parameter_name=parameter, module_name=module_name)
319+
320+
# readonly propertyns to plans and plan stubs.
321+
readonly = properties.get("readonly", None)
322+
323+
# Normal types + (struct and tuple as JSON object Strings)
324+
self._signal_from_parameter(
325+
path=param_path,
326+
sig_name=parameter,
327+
readonly=readonly,
328+
)
329+
self.param_devices[parameter] = getattr(self, parameter)
330+
312331
# Initialize Command Devices
313332
for command, properties in module_desc["commands"].items():
314333
# generate new root path

0 commit comments

Comments
 (0)