Check whether data is a numpy 1-D array.
(data)
| 57 | |
| 58 | |
| 59 | def is_numpy_1d_array(data): |
| 60 | """Check whether data is a numpy 1-D array.""" |
| 61 | return isinstance(data, np.ndarray) and len(data.shape) == 1 |
| 62 | |
| 63 | |
| 64 | def is_1d_list(data): |
no outgoing calls
no test coverage detected