MCPcopy Index your code
hub / github.com/numpy/numpy / func

Function func

numpy/_core/tests/test_multithreading.py:22–23  ·  view source on GitHub ↗
(seed)

Source from the content-addressed store, hash-verified

20 # if the coercion cache is enabled and not thread-safe, creating
21 # RandomState instances simultaneously leads to a data race
22 def func(seed):
23 np.random.RandomState(seed)
24
25 run_threaded(func, 500, pass_count=True)
26

Callers 15

test_ufuncs_minmaxFunction · 0.70
test_unaryFunction · 0.70
call_funcFunction · 0.70
test_invalid_integersFunction · 0.70
test_missing_argumentsFunction · 0.70
test_too_many_positionalFunction · 0.70
test_multiple_valuesFunction · 0.70
test_string_fallbacksFunction · 0.70
test_roundingMethod · 0.70
test_max_minMethod · 0.70

Calls 3

randomMethod · 0.80
nonzeroMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…