fourMs / MGT-python

Musical Gestures Toolbox for Python
https://www.uio.no/ritmo/english/research/labs/fourms/downloads/software/musicalgesturestoolbox/mgt-python/index.html
GNU General Public License v3.0
52 stars 11 forks source link

Error with SSM #278

Closed alexarje closed 1 year ago

alexarje commented 1 year ago

When running this exampe I get the error: TypeError: 'MgFigure' object is not callable:

image

What is wrong?

joachimpoutaraud commented 1 year ago

I have tested the same example on Windows 11, Google Colab and Windows Subsystem for Linux (WSL) and it works fine. Maybe the MgVideo() was associated to another variable? What is strange here is that the _ssm.py function is suppose to return a MgList but not a MgFigure. Did you try to run the example from scratch?

alexarje commented 1 year ago

It looks like the problem occurs if you run any processes on the MgVideo object before running ssm. If I load a new video file, it works fine, but if I run any process on the video first (e.g. motion()) it gives the MgFigure error.

joachimpoutaraud commented 1 year ago

It appears that there was a redundancy in a variable name of the MgFigure object in the _ssm.py file. I have found the variable and change its name so that it won't create an error if another process has been executed on the MgVideo object before.