def _can_have_arbitrary_unit(value):
 return np.all(np.logical_or(np.equal(value, 0.0), (~ np.isfinite(value))))

def _can_have_arbitrary_unit ( value ) : return np . all ( np . logical_or ( np . equal ( value , 0.0 ) , ( ~ np . isfinite ( value ) ) ) )
test whether the items in value can have arbitrary units numbers whose value does not change upon a unit change .