Salve a tutti.
Come si vede dal log riportato, ho un errore di un'unità sul blu dei primi 4 pixel nella figura compressa. Di fatto la differenza tra l'immagine prodotta e quella da produrre è quasi impercettibile, ma ovviamente l'algoritmo non supera i test.
A qualcuno è capitato? Qualche consiglio?
========================================================================================================= short test summary info ==========================================================================================================
FAILED test_01.py::Test::test_data_01___circle____5__5__27__28__ - AssertionError: Tuples differ: (0, 0, 10) != (0, 0, 11)
FAILED test_01.py::Test::test_data_02___5_squares____5__5__44__44__ - AssertionError: Tuples differ: (0, 0, 20) != (0, 0, 21)
FAILED test_01.py::Test::test_data_03___6_rectangles____100__50__350__300__ - AssertionError: Tuples differ: (0, 0, 200) != (0, 0, 201)
FAILED test_01.py::Test::test_data_04___random_5____46__162__726__1062__ - AssertionError: Tuples differ: (0, 1, 15) != (0, 1, 16)
FAILED test_01.py::Test::test_data_05___random_10____175__89__780__2815__ - AssertionError: Tuples differ: (0, 0, 221) != (0, 0, 222)
Come si vede dal log riportato, ho un errore di un'unità sul blu dei primi 4 pixel nella figura compressa. Di fatto la differenza tra l'immagine prodotta e quella da produrre è quasi impercettibile, ma ovviamente l'algoritmo non supera i test.
A qualcuno è capitato? Qualche consiglio?
========================================================================================================= short test summary info ==========================================================================================================
FAILED test_01.py::Test::test_data_01___circle____5__5__27__28__ - AssertionError: Tuples differ: (0, 0, 10) != (0, 0, 11)
FAILED test_01.py::Test::test_data_02___5_squares____5__5__44__44__ - AssertionError: Tuples differ: (0, 0, 20) != (0, 0, 21)
FAILED test_01.py::Test::test_data_03___6_rectangles____100__50__350__300__ - AssertionError: Tuples differ: (0, 0, 200) != (0, 0, 201)
FAILED test_01.py::Test::test_data_04___random_5____46__162__726__1062__ - AssertionError: Tuples differ: (0, 1, 15) != (0, 1, 16)
FAILED test_01.py::Test::test_data_05___random_10____175__89__780__2815__ - AssertionError: Tuples differ: (0, 0, 221) != (0, 0, 222)