I\'d like to check if variable is None or numpy.array. I\'ve implemented check_a function to do this.
check_a
def check_a(a): if not a: prin
You can see if object has shape or not
def check_array(x): try: x.shape return True except: return False