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

Python Error: ValueError: Internal work array size computation failed: -10 #32

Open
nikiita013 opened this issue Jun 13, 2024 · 1 comment

Comments

@nikiita013
Copy link

nikiita013 commented Jun 13, 2024

Hi,

I am am running fooof on linux (ubuntu) with 2024a MATLAB. When I execute the fooof.m script it gives following error: (It gives error specifically when fm.fit() is called.

` fm.fit(freqs, power_spectrum, f_range)

FOOOF WARNING: Lower-bound peak width limit is < or ~= the frequency resolution: 0.50 <= 0.98
Lower bounds below frequency-resolution have no effect (effective lower bound is the frequency resolution).
Too low a limit may lead to overfitting noise as small bandwidth peaks.
We recommend a lower bound of approximately 2x the frequency resolution.

Warning: Unable to load Python object. Saving (serializing) Python objects into a MAT-file is not supported.
Error using lapack>_compute_lwork (line 1004)
Python Error: ValueError: Internal work array size computation failed: -10

Error in _decomp_svd>svd (line 123)

Error in trf>trf_bounds (line 301)

Error in trf (line 123)

Error in least_squares (line 938)

Error in _minpack_py>curve_fit (line 974)

Error in fit>_fit_peak_guess (line 1161)

Error in fit>_fit_peaks (line 1111)

Error in fit (line 488)
`

Following is the py env in MATLAB:

`pyenv

ans =

PythonEnvironment with properties:

      Version: "3.10"
   Executable: "/usr/bin/python3"
      Library: "libpython3.10.so.1.0"
         Home: "/usr"
       Status: Loaded
ExecutionMode: InProcess
    ProcessID: "4119304"
  ProcessName: "MATLAB"

`

Any help is very much appreciated!

@xiongyy99255
Copy link

Hello, I have the same problem, have you solved it now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants