Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TypeError: Slice indices should be integers #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wsyxbcl
Copy link

@wsyxbcl wsyxbcl commented Mar 27, 2019

#7
In k[m/2-1 : m/2+2, n/2-1 : n/2+2] = np.array([[1,1,1],[1,0,1],[1,1,1]]), 'm/2' and 'n/2' are float in Python 3.x, which can't be received as indices in slice.

TypeError: slice indices must be integers or None or have an __index__ method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant