PyDMD icon indicating copy to clipboard operation
PyDMD copied to clipboard

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

Open kuning19901 opened this issue 2 years ago • 4 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'

kuning19901 avatar Dec 23 '23 08:12 kuning19901

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

fandreuz avatar Dec 24 '23 08:12 fandreuz

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.

kuning19901 avatar Dec 24 '23 15:12 kuning19901

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

fandreuz avatar Jan 08 '24 21:01 fandreuz

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

fandreuz avatar Mar 05 '24 21:03 fandreuz