(cls,
input_array)
| 1731 | class OldSqueeze(np.ndarray): |
| 1732 | |
| 1733 | def __new__(cls, |
| 1734 | input_array): |
| 1735 | obj = np.asarray(input_array).view(cls) |
| 1736 | return obj |
| 1737 | |
| 1738 | # it is perfectly reasonable that prior |
| 1739 | # to numpy version 1.7.0 a subclass of ndarray |