[~] Refactor

This commit is contained in:
Siarhei Siniak 2021-07-29 22:18:54 +03:00
parent 77f8a3a5ba
commit abf599d6ad

@ -1780,7 +1780,7 @@ def kernel_30(o_29, ids=None, delay=None,):
pprint.pprint([t8.sum(), t8.mean()]) pprint.pprint([t8.sum(), t8.mean()])
ids = numpy.random.choice( ids = numpy.random.choice(
numpy.where(t8)[0], numpy.where(t8)[0],
min(70, len(t8)), min(70, t8.sum()),
) )
elif ids == 'v3': elif ids == 'v3':
t8 = numpy.stack( t8 = numpy.stack(
@ -1794,7 +1794,7 @@ def kernel_30(o_29, ids=None, delay=None,):
pprint.pprint([t8.sum(), t8.mean()]) pprint.pprint([t8.sum(), t8.mean()])
ids = numpy.random.choice( ids = numpy.random.choice(
numpy.where(t8)[0], numpy.where(t8)[0],
min(70, len(t8)), min(70, t8.sum()),
) )
elif ids == 'v4': elif ids == 'v4':
t8 = numpy.stack( t8 = numpy.stack(
@ -1808,7 +1808,7 @@ def kernel_30(o_29, ids=None, delay=None,):
pprint.pprint([t8.sum(), t8.mean()]) pprint.pprint([t8.sum(), t8.mean()])
ids = numpy.random.choice( ids = numpy.random.choice(
numpy.where(t8)[0], numpy.where(t8)[0],
min(70, len(t8)), min(70, t8.sum()),
) )
else: else:
assert isinstance(ids, numpy.ndarray) assert isinstance(ids, numpy.ndarray)