Skip to content

wrong handling of array indexing #15

@SaschaRienaecker

Description

@SaschaRienaecker

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions