You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently started experimenting with SINDy for PDE identification. Even while using the example code, I ran into an issue where PDELibrary does not accept the useage of function_library. Is it related to some recent changes? Defining the library functions explicitly seems to work.
Any input will be appriciated. Thanks!
You can see in the link you shared that that is for the latest commit: https://pysindy.readthedocs.io/en/latest/examples/10_PDEFIND_examples/example.html
To install that version, run pip isntall git+https://github.com/dynamicslab/pysindy
For version 1.7.5, check the stable documentation: https://pysindy.readthedocs.io/en/stable/examples/10_PDEFIND_examples/example.html
In any interactive python session, if you have an old version of a library that doesn't have online documentation, you can check help(obj) to get the documentation for that object. In your case, that would show that PDELibrary from version 1.7.5 does not have a function_library parameter.
Recently started experimenting with SINDy for PDE identification. Even while using the example code, I ran into an issue where PDELibrary does not accept the useage of function_library. Is it related to some recent changes? Defining the library functions explicitly seems to work.
Any input will be appriciated. Thanks!
Reproducing code example:
(Taken directly from the docs )
Error message:
Traceback (most recent call last):
File ~\miniconda3\envs\PhysML\Lib\site-packages\spyder_kernels\customize\utils.py:209 in exec_encapsulate_locals
exec_fun(compile(code_ast, filename, "exec"), globals)
File \sindy_test.py:143
pde_lib = ps.PDELibrary(
TypeError: PDELibrary.init() got an unexpected keyword argument 'function_library'
PySINDy/Python version information:
pysindy - 1.7.5
Python - '3.12.8 | packaged by conda-forge | (main, Dec 5 2024, 14:06:27) [MSC v.1942 64 bit (AMD64)]'
The text was updated successfully, but these errors were encountered: