> else: > if len(shape) == 1: > return aligned_empty(shape, boundary=boundary, > dtype=dtype, order=order, imagealign=imagealign) This obviously should be > else: > if len(shape[0]) == 1: > return aligned_empty(shape, boundary=boundary, > dtype=dtype, order=order, imagealign=imagealign)