test_05_01_power (cellprofiler.modules.tests.test_makeprojection.TestMakeProjection) ... /home/travis/build/CellProfiler/CellProfiler/cellprofiler/modules/makeprojection.py:450: ComplexWarning: Casting complex values to real discards the imaginary part
cached_image = (cached_image * np.conj(cached_image)).astype(np.float32)
ok
https://github.com/CellProfiler/CellProfiler/blob/master/cellprofiler/modules/makeprojection.py#L450
Imaginary part should be zero, but roundoff will leave a small imaginary fraction.
cached_image = (cached_image * np.conj(cached_image)).real.astype(np.float32)
should fix this.
Most helpful comment
https://github.com/CellProfiler/CellProfiler/blob/master/cellprofiler/modules/makeprojection.py#L450
Imaginary part should be zero, but roundoff will leave a small imaginary fraction.
cached_image = (cached_image * np.conj(cached_image)).real.astype(np.float32)
should fix this.