Created
November 9, 2023 11:34
-
-
Save odinsbane/38739ec78483bf3f8df1356cd8724815 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import numpy | |
arr = numpy.random.random( (4, 4) ) | |
gen = ( slice(0,2) for i in range(2) ) | |
arr2 = arr[ *gen ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the error