MCPcopy Create free account
hub / github.com/vispy/vispy / isscalar

Method isscalar

vispy/gloo/program.py:398–399  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

396 is_constant = False
397
398 def isscalar(x):
399 return isinstance(x, (float, int))
400
401 if isscalar(data):
402 is_constant = True

Callers 4

zoomMethod · 0.80
_adjacent_triMethod · 0.80
valueMethod · 0.80
gaussian_filterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected