CPCLAB-UNIPI / SIPPY

Systems Identification Package for PYthon
GNU Lesser General Public License v3.0
269 stars 92 forks source link

SS.py is not working in Anaconda (Jupyter Notebook) #5

Closed ijaved7 closed 5 years ago

ijaved7 commented 5 years ago

I am working on Anaconda, i have added the SIPPY library in it. But when i run this example I get a message that says " Kalman filter cannot be calculated <Figure size 640x480 with 1 Axes> <Figure size 640x480 with 1 Axes>"

This message is printed when "sys_id=system_identification(y_tot,U,method,SS_fixed_order=2)" command is run. What is the thing that I am missing?

Regards.

CameronDevine commented 5 years ago

I am not using Anaconda, but looking through the code this is most likely happening because all the necessary slycot functions are available. To check if this is the issue you could run the following code and see if any errors are thrown,

from slycot import sb02md, sb02mt, sg02ad

I was able to fix this issue by simply reinstalling slycot.

Let me know if this helps.

CPCLAB-UNIPI commented 5 years ago

Thanks to everyone for pointing out this problem. As pointed out in the UserGuide, the error

Kalman filter cannot be calculated

it is generated by the slycot package. As underlined in the guide and noted by @CameronDevine reinstalling properly the package should solve the problem.