Skip to content

Morse.power return a series of Nan #1

@mrl998

Description

@mrl998

I tried to run the following example:

morse = Morse(1000, r=3., b=17.5)
freq = 60
time = np.arange(0, 0.3, 0.001)
sin = np.array([np.sin(time * freq * 2 * np.pi)])
result = morse.power(sin, range(1, 100))

But the result is full of Nan, and I got the following warning:
...\ninwavelets\base.py:267: RuntimeWarning: invalid value encountered in true_divide
return result / self.get_wavelet_norm(ncp.fft.ifft(result))

How do I fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions