Return whether a value is meaningfully convertable to a numpy array via 'numpy.array'
(v)
| 180 | |
| 181 | |
| 182 | def is_numpy_convertable(v): |
| 183 | """ |
| 184 | Return whether a value is meaningfully convertable to a numpy array |
| 185 | via 'numpy.array' |
| 186 | """ |
| 187 | return hasattr(v, "__array__") or hasattr(v, "__array_interface__") |
| 188 | |
| 189 | |
| 190 | def is_homogeneous_array(v): |
no outgoing calls
no test coverage detected