提交 565321b9 authored 作者: Benjamin Scellier's avatar Benjamin Scellier

fix flake8

上级 0372f4a5
......@@ -589,7 +589,7 @@ def random_integers_helper(random_state, low, high, size):
high.shape)
# Iterate over these indices, drawing one sample at a time from numpy
for oi, li, hi in zip(*broadcast_ind):
out[oi] = random_state.randint(low=low[li], high=high[hi]+1)
out[oi] = random_state.randint(low=low[li], high=high[hi] + 1)
return out
......
......@@ -34,7 +34,7 @@ def random_lil(shape, dtype, nnz):
huge = 2 ** 30
for k in range(nnz):
# set non-zeros in random locations (row x, col y)
idx = numpy.random.randint(1, huge+1, size=2) % shape
idx = numpy.random.randint(1, huge + 1, size=2) % shape
value = numpy.random.rand()
# if dtype *int*, value will always be zeros!
if "int" in dtype:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论