MCPcopy Create free account
hub / github.com/SINGROUP/dscribe / is1d

Function is1d

dscribe/utils/dimensionality.py:20–27  ·  view source on GitHub ↗
(array, dtype=np.integer)

Source from the content-addressed store, hash-verified

18
19
20def is1d(array, dtype=np.integer):
21 try:
22 for i in array:
23 if not np.issubdtype(type(i), dtype):
24 return False
25 except Exception:
26 return False
27 return True
28
29
30def is2d(array, dtype=np.integer):

Callers 2

derivativesMethod · 0.90
derivativesMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected