Commit a6f727db authored by Philipp Arras's avatar Philipp Arras

fixup! fixup! Add ValueInserter

parent cdb98660
......@@ -270,6 +270,11 @@ def testOuter(fdomain, domain):
@pmp('seed', [12, 3])
def testValueInserter(sp, seed):
np.random.seed(seed)
ind = tuple([np.random.randint(0, ss-1) for ss in sp.shape])
ind = []
for ss in sp.shape:
if ss == 1:
ind.append(0)
else:
ind.append(np.random.randint(0, ss-1))
op = ift.ValueInserter(sp, ind)
ift.extra.consistency_check(op)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment