Opened 9 years ago

Last modified 9 years ago

#31 new defect

shiftopt.ShiftOptFunc2() discards imaginary part of complex array

Reported by: flip Owned by: bsoher
Priority: major Milestone:
Component: processing Version:
Keywords: Cc:

Description (last modified by flip)

The simple ECC filter raises a warning every time I run it. The warning is this:

ComplexWarning: Casting complex values to real discards the imaginary part

You can generate the same warning by running python

I tracked it down to this line (123) in analysis/src/

cc = numpy.corrcoef(data, info['expo'])

data is a complex128 ndarray while info['expo'] is an array of floats. On a simple level I can understand why numpy squawks but I have no idea if it's a real problem or not, nor how to fix it.

Change History (1)

comment:1 Changed 9 years ago by flip

  • Description modified (diff)
Note: See TracTickets for help on using tickets.