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

balu.DataSelectionAndGeneration.Bds_nostratify not working on Python 3.6.1 #17

Open
socampog opened this issue May 5, 2017 · 0 comments

Comments

@socampog
Copy link

socampog commented May 5, 2017

...
balu/DataSelectionAndGeneration/Bds_nostratify.py", line 35, in Bds_nostratify
    X1 = Xr[0:r, :]
TypeError: slice indices must be integers or None or have an __index__ method

A possible solution is to change r = np.floor(s * N) in source line 33, for either:

  • r = np.floor(s * N).astype(int)
  • r = np.uint8(np.floor(s * N))
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

No branches or pull requests

1 participant