macronucleus / Chromagnon

Image correction software for chromatic shifts in fluorescence microscopic images
GNU General Public License v2.0
21 stars 5 forks source link

Casting complex values to real discards the imaginary part #13

Closed carandraug closed 5 years ago

carandraug commented 5 years ago

We get the following warning running Chromagnon:

/usr/local/lib/python2.7/dist-packages/Chromagnon/Priithon/fftfuncs.py:15: ComplexWarning: Casting complex values to real discards the imaginary part
   return N.fromfunction(f,s).astype(t)

I'm guessing this is by design but then the warning should be silenced explicitely

carandraug commented 5 years ago

We're running Chromagnon on python 2.7 in Debian stable (stretch) with javabridge 1.0.18, tifffile 0.15.1, python-bioformats 1.5.2, numpy 1.12, and scipy 0.18.

macronucleus commented 5 years ago

I don't recall when I did it, but the warning was suppressed already (probably before v0.69?). I am sorry for the late reply.