MCPcopy Index your code
hub / github.com/bqplot/bqplot / array_dimension_bounds

Function array_dimension_bounds

bqplot/traits.py:214–222  ·  view source on GitHub ↗
(mindim=0, maxdim=np.inf)

Source from the content-addressed store, hash-verified

212
213
214def array_dimension_bounds(mindim=0, maxdim=np.inf):
215 def validator(trait, value):
216 dim = len(value.shape)
217 if dim < mindim or dim > maxdim:
218 raise TraitError(&#x27;Dimension mismatch for trait %s of class %s: expected an \
219 array of dimension comprised in interval [%s, %s] and got an array of shape %s&#x27; % (
220 trait.name, trait.this_class, mindim, maxdim, value.shape))
221 return value
222 return validator
223
224
225def array_supported_kinds(kinds='biufMSUO'):

Callers 14

AxisClass · 0.85
LinesClass · 0.85
FlexLineClass · 0.85
_ScatterBaseClass · 0.85
ScatterClass · 0.85
HistClass · 0.85
BoxplotClass · 0.85
BarsClass · 0.85
BinsClass · 0.85
OHLCClass · 0.85
PieClass · 0.85
GridHeatMapClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…