You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for this nice project.
When I try to convert the following lines,
x = zeros(4,4)
y = x(1,:)
I get a python output which is obviously wrong
import numpy as np
x = np.zeros((4,4))
y = x(1,:)
since x is an array and should be indexed using [ ] brackets and python indexing starting from 0.
Is there an easy way to fix? This would be very helpful.
The text was updated successfully, but these errors were encountered:
Hi @SaschaRienaecker
Unfortunately this is one of the greatest limitation.. There might be a way to somehow figuring out, based on context, which object is a variables and which is a function. If you are well versed in python, you can try diving into the code and come up with a suggestion? Even if it only works for the case with a "zeros" or "ones" initialization, it would still be useful.
Thanks a lot!
First of all, thank you for this nice project.
When I try to convert the following lines,
I get a python output which is obviously wrong
since x is an array and should be indexed using [ ] brackets and python indexing starting from 0.
Is there an easy way to fix? This would be very helpful.
The text was updated successfully, but these errors were encountered: