Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fft plugin errors when viewing from kymograph #5

Open
cudmore opened this issue Jun 9, 2022 · 0 comments
Open

fft plugin errors when viewing from kymograph #5

cudmore opened this issue Jun 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@cudmore
Copy link
Owner

cudmore commented Jun 9, 2022

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.
@cudmore cudmore added the bug Something isn't working label Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant