victorlei / smop

Small Matlab to Python compiler
MIT License
1.08k stars 410 forks source link

The function call to 'arange' function in converted .py file is incorrect #166

Closed Aceticia closed 2 years ago

Aceticia commented 4 years ago

The original matlab code is: I(1:2,:,100)=1;

The converted python code is: I[arange(1, 2),arange(),100]=1

When the python file is run, it produces the following error: TypeError: arange() missing 2 required positional arguments: 'start' and 'stop'

Checking the libsmop, the function signature for arange() is: def arange(start,stop,step=1,**kwargs), which does require the star and stop argument. Did I miss a step in the setup or was this a bug?