Fixed a severge bug in centroid correction

Signed-off-by: Jan André Reuter <jan.andre.reuter@hotmail.de>
4 jobs for gpu-optimization in 3 minutes and 5 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Test
passed #104226
gpu docker
lint:python3

00:00:45

failed #104227
gpu docker
test:python3

00:02:19

 
  Install
skipped #104228
gpu docker
install:python3
 
  Pack
skipped #104229
gpu docker
pack:python3
 
Name Stage Failure
failed
test:python3 Test
=========================== short test summary info ============================
FAILED tests/test_compare_cpu_gpu.py::TestToolbox::test_compare_peakdistance
FAILED tests/test_compare_cpu_gpu.py::TestToolbox::test_compare_centroids - a...
FAILED tests/test_compare_cpu_gpu.py::TestToolbox::test_compare_direction - a...
FAILED tests/test_compare_cpu_gpu.py::TestToolbox::test_compare_unit_vectors
FAILED tests/test_visualization.py::TestVisualization::test_visualize_unit_vectors[png]
============== 5 failed, 60 passed, 1 warning in 86.87s (0:01:26) ==============
Cleaning up file based variables
ERROR: Job failed: exit code 1