Filter


#1

Has anyone encountered issues with scidb-py’s filter? Here’s my code:

x = np.random.randint(10, size=(5, 4))
x_sdb = sdb.from_array(x)
print ‘x_sdb =\n’, x_sdb.toarray()
large5 = sdb.afl.filter(x_sdb, x_sdb.attribute(0)>5)
print ‘large5 =\n’, large5.toarray()

which outputs the following result:

x_sdb =
[[1 2 5 1]
[6 6 3 2]
[4 8 9 7]
[6 4 3 4]
[9 2 4 5]]
large5 =
[[1 2 5 1]
[6 6 3 2]
[4 8 9 7]
[6 4 3 4]
[9 2 4 5]]

Where did I do wrong?

-Don