Skip to content

confusing indexing #38

@lepmik

Description

@lepmik

Hi!

First of all, love this project! Using it to teach matrix indexing, and finally simulate and animate an epidemic.

One thing I find a bit confusing though is your choice of indexing which is different from numpy e.g.

grid = BlockGrid(20, 10, block_size=4)
print(grid.shape)
>>> (20, 10)
grid[9, 19]

As opposed to numpy

grid = np.zeros((20,10))
print(grid.shape)
>>> (20, 10)
grid[19, 9]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions