Closed elmjag closed 11 months ago
In TangoChannel.update(), we'll get an exception if attribute value is of numpy.ndarray.
Value of numpy.ndarray type can't be compared to Poller.NotInitializedValue, Comparison raised following exception:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Check first if value is ndarray, and only if it's not, compare it with Poller.NotInitializedValue. https://github.com/elmjag/mxcubecore/blob/tango_numpy/mxcubecore/Command/Tango.py#L325
Also, some minor clean-up.
Wonderful, thanks !
In TangoChannel.update(), we'll get an exception if attribute value is of numpy.ndarray.
Value of numpy.ndarray type can't be compared to Poller.NotInitializedValue, Comparison raised following exception:
Check first if value is ndarray, and only if it's not, compare it with Poller.NotInitializedValue. https://github.com/elmjag/mxcubecore/blob/tango_numpy/mxcubecore/Command/Tango.py#L325
Also, some minor clean-up.