Closed munozdjp closed 5 months ago
Thanks. You are correct - quiet
was removed. The stability guarantees of the examples/ isn't totally agreed upon and is something we're working towards. Some are truly meant as examples, others are completed research ran on an old version of pysindy, and thus may break on major version updates.
If you're interested in why quiet was removed, you can either search issues or for maximum style points, use git archaeology. Clone the repo and run git log --oneline -Squiet --pysindy/pysindy.py
. This is called a git pickaxe and will give you a list of commits that modified the number of occurrences of the string "quiet". You can read the commit messages, and if you go to that commit on github (https://github.com/dynamicslab/pysindy/commit/
Description:
While attempting to reproduce the examples in "3_original_Paper," I encountered an error on line 203. The issue appears to be related to the quiet argument in the fit method of pysindy.py.
Steps to Reproduce:
Navigate to the "3_original_Paper" example. Execute the code until line 203. Expected Behavior: The code should run without errors, fitting the SINDy models with varying noise levels.
Actual Behavior:
An error occurs, indicating that the quiet argument is not recognized in the fit method of pysindy.py.
Error Message:
TypeError: SINDy.fit() got an unexpected keyword argument 'quiet'
Reproducing code example:
Error message:
File "", line 46, in
model.fit(
TypeError: SINDy.fit() got an unexpected keyword argument 'quiet'
PySINDy/Python version information:
Output from 'import sys, pysindy; print(pysindy.version, sys.version)' 1.7.6.dev135+g638e4bb 3.12.1 | packaged by conda-forge | (main, Dec 23 2023, 08:05:03) [Clang 16.0.6 ]
Additional Context
Upon inspecting the pysindy.py file, I noticed that the fit method (line 178) does not include a quiet argument. Here is the relevant section of the code for reference: