Closed AlexanderWells-diamond closed 2 years ago
This issue should be solved after #40 as it'll add typing info to the record creation functions (longout, longin, etc.) in device.py.
Then self._value = kargs.pop('initial_value', None)
could have the None
changed to be the default value of the type.
If an out record is constructed without an
initial_value
or has noset()
called before the IOC is initialised,validate
methods will not work as expected - they won't work at all. An example program is:And running the following commands in the terminal, we see an error message BUT we also see the underlying value has changed:
Following a bit of debugging with @Araneidae it seems that all Out records will face similar issues if there is no initial_value set.