def is_array ( self , key ) : data = self . model . get_data ( ) return isinstance ( data [ key ] , ( ndarray , MaskedArray ) )
python how do you check the array attribute
Return True if variable is a numpy array
def is_array(self, key):
        """Return True if variable is a numpy array"""
        data = self.model.get_data()
        return isinstance(data[key], (ndarray, MaskedArray))