Skip to content

fft plugin errors when viewing from kymograph #5

@cudmore

Description

@cudmore

Running the fft plugin on kymograph tif(s) results in the following error. Probably due to short number of points (like 1000). Really not sure ...

Traceback (most recent call last):
  File "/Users/cudmore/Sites/SanPy/sanpy/interface/sanpy_app.py", line 1004, in slot_contextMenu
    newPlugin = self.myPlugins.runPlugin(pluginName, ba, show=False)
  File "/Users/cudmore/Sites/SanPy/sanpy/interface/bPlugins.py", line 163, in runPlugin
    self.pluginDict[pluginName]['constructor'](ba=ba, bPlugin=self, startStop=startStop)
  File "/Users/cudmore/Sites/SanPy/sanpy/interface/plugins/fftPlugin.py", line 477, in __init__
    self.replot2(switchFile=True)
  File "/Users/cudmore/Sites/SanPy/sanpy/interface/plugins/fftPlugin.py", line 793, in replot2
    self.replot_fft2()
  File "/Users/cudmore/Sites/SanPy/sanpy/interface/plugins/fftPlugin.py", line 888, in replot_fft2
    yFiltered_Butter = scipy.signal.sosfiltfilt(self.sos, yDetrend, axis=0)
  File "/opt/miniconda3/envs/sanpy-env/lib/python3.9/site-packages/scipy/signal/_signaltools.py", line 4335, in sosfiltfilt
    edge, ext = _validate_pad(padtype, padlen, x, axis,
  File "/opt/miniconda3/envs/sanpy-env/lib/python3.9/site-packages/scipy/signal/_signaltools.py", line 4105, in _validate_pad
    raise ValueError("The length of the input vector x must be greater "
ValueError: The length of the input vector x must be greater than padlen, which is 423.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions