MCPcopy Create free account
hub / github.com/numpy/numpy / warn

Function warn

numpy/testing/tests/test_utils.py:1342–1344  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

1340 # Apply along axis is implemented in python; stacklevel=2 means
1341 # we end up inside its module, not ours.
1342 def warn(arr):
1343 warnings.warn("Some warning 2", stacklevel=2)
1344 return arr
1345 np.apply_along_axis(warn, 0, [0])
1346
1347 # Test module based warning suppression:

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected