Skip to content

Commit

Permalink
remove commented test
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFlt committed Oct 3, 2024
1 parent 3a01432 commit 56fd3fd
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions modules/python/test/test_numpy_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,20 +214,3 @@ def test_setitem_2D_array():

a[:-5] = multi_rows
assert np.all(np.equal(a.numpy()[:-5], multi_rows))




# def test_setitem_with_numpy_raw_image():
# h, w = 30, 20
# I = ImageGray(h, w, 0)
# single_row = np.ones((w, ), dtype=np.uint8) * 255

# I[2] = single_row
# assert not np.any(np.equal(I.numpy()[list(set(range(h)) - {2})], single_row))
# assert np.all(np.equal(I.numpy()[2], single_row))

# I[:] = 0
# I[1:-2] = single_row
# assert np.all(np.equal(I.numpy()[list(set(range(h)) - {0, h - 2, h - 1})], single_row))
# assert np.all(np.equal(I.numpy()[[0, h - 2, h - 1]], 0))

0 comments on commit 56fd3fd

Please sign in to comment.