Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
zoom
Method · 0.80
_adjacent_tri
Method · 0.80
value
Method · 0.80
gaussian_filter
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected