configureDelayExpected attribute cannot be read
I was running SKAMPI to test the integration of the cbf emulator into the mid-cbf software, and as part of these changes the CbfSubarray can now take longer to transition out of its CONFIGURING
state due to a loop that performs hostname resolution. This cause an error on the CspSubarray
, which defaults to a 5 second timeout for this transition.
Reading the code however I learned that CspSubarray
caters for slower devices, as long as they expose a configureDelayExpected
attribute. This attribute, if existing, is read and its value is used as the timeout.
I tried out by adding such attribute to the CbfSubarray
device. However, that resulted on an error due to TypeError: 'int' object is not callable
. This was caused by https://gitlab.com/ska-telescope/csp-lmc/-/blob/master/csp-lmc-common/csp_lmc_common/CspSubarray.py#L1712 where value
is called instead of simply read.