dynamicslab / pysindy

A package for the sparse identification of nonlinear dynamical systems from data
https://pysindy.readthedocs.io/en/latest/
Other
1.36k stars 304 forks source link

[BUG] importing pysindy adds "Ignore UserWarning" to the global warnings filter #414

Open Jacob-Stevens-Haas opened 9 months ago

Jacob-Stevens-Haas commented 9 months ago

As title. Should be a simple fix, but this is a placeholder to come back to it.

Reproducing code example:

import pysindy
import warnings
warnings.warn("Foo", UserWarning)
warnings.filters[0]

Error message:

None, no warnings appear. Filter is ('ignore', None, UserWarning, None, 0)

PySINDy/Python version information:

master