docs: improved doc strings for computed signal

This commit is contained in:
wakonig_k 2024-03-08 17:13:15 +01:00
parent c76e1a0b4e
commit c68c3c1b54

View File

@ -73,6 +73,9 @@ class ComputedSignal(SignalRO):
representation of a function that takes the input signals as arguments representation of a function that takes the input signals as arguments
and returns the computed value. and returns the computed value.
Example:
>>> signal.compute_method = "def test(a, b): return a.get() + b.get()"
""" """
return self._compute_method return self._compute_method
@ -95,6 +98,9 @@ class ComputedSignal(SignalRO):
Args: Args:
*input_vars: The input signals to be used for the computation *input_vars: The input signals to be used for the computation
Example:
>>> signal.input_signals = ["samx_readback", "samx_readback"]
""" """
return self._input_signals return self._input_signals