PyDMD / PyDMD

Python Dynamic Mode Decomposition

Home Page:https://pydmd.github.io/PyDMD/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: plot_summary() got an unexpected keyword argument 'd'

kuning19901 opened this issue · comments

When I am trying to test the examples, the following error abouth plot_summary() occurs, could I know how to fix it?

TypeError Traceback (most recent call last)
in
2 delay_dmd = hankel_preprocessing(dmd, d=delays)
3 delay_dmd.fit(Xn.T)
----> 4 plot_summary(delay_dmd, d=delays)
5
6 print(

TypeError: plot_summary() got an unexpected keyword argument 'd'

Hi @kuning19901, could you please tell us the output of pip show pydmd? The problem could be caused by an outdated version of PyDMD.

Hi @kuning19901, could you please tell us the output of pip show pydmd? The problem could be caused by an outdated version of PyDMD.

Hi, @fandreuz , many thanks for your reply. I have found the reason for that. It should be the problem of the version. This problem exists when I use the code from https://github.com/PyDMD/PyDMD. If I use the code from https://github.com/mathLab/PyDMD, the problem disappears. I think the plot_summary() should be different for these two sources.

Hi @kuning19901, sorry for the delay. Are you sure it is not the other way around? I mean, https://github.com/PyDMD/PyDMD should have the new option (https://github.com/PyDMD/PyDMD/blob/master/pydmd/plotter.py#L542) and https://github.com/mathLab/PyDMD should not have it (https://github.com/mathLab/PyDMD/blob/master/pydmd/plotter.py#L535). The latter is an unmaintained fork that we rarely update

Closing since we did not receive replies after 2 months, please feel free to reopen the issue if it is still relevant