Skip to content

Commit

Permalink
wait
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 21, 2024
1 parent 76ff7aa commit 2228a90
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Tests/test_color_lut.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,17 +382,18 @@ def test_numpy_sources(self) -> None:

table = numpy.ones((7, 6, 5, 3), dtype=numpy.float16)
lut = ImageFilter.Color3DLUT((5, 6, 7), table)
lut_table = lut.table
assert isinstance(lut_table, numpy.ndarray)
assert lut_table.dtype == table.dtype
assert lut_table.shape == (table.size,)
assert isinstance(lut.table, numpy.ndarray)
assert lut.table.dtype == table.dtype
assert lut.table.shape == (table.size,)

table = numpy.ones((7 * 6 * 5, 3), dtype=numpy.float16)
lut = ImageFilter.Color3DLUT((5, 6, 7), table)
assert isinstance(lut.table, numpy.ndarray)
assert lut.table.shape == (table.size,)

table = numpy.ones((7 * 6 * 5 * 3), dtype=numpy.float16)
lut = ImageFilter.Color3DLUT((5, 6, 7), table)
assert isinstance(lut.table, numpy.ndarray)
assert lut.table.shape == (table.size,)

# Check application
Expand Down

0 comments on commit 2228a90

Please sign in to comment.