MCPcopy Index your code
hub / github.com/plotly/plotly.py / is_numpy_convertable

Function is_numpy_convertable

_plotly_utils/basevalidators.py:182–187  ·  view source on GitHub ↗

Return whether a value is meaningfully convertable to a numpy array via 'numpy.array'

(v)

Source from the content-addressed store, hash-verified

180
181
182def 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
190def is_homogeneous_array(v):

Callers 3

to_scalar_or_listFunction · 0.85
is_homogeneous_arrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected