We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f9d596 commit f688a39Copy full SHA for f688a39
arraypartition/partition.py
@@ -119,6 +119,10 @@ def shape(self):
119
if not self._extent:
120
return self._shape
121
for d, e in enumerate(self._extent):
122
+
123
+ if isinstance(e, int):
124
+ continue
125
126
start = e.start or 0
127
stop = e.stop or self._shape[d]
128
step = e.step or 1
arraypartition/tests/test_array.py
@@ -22,7 +22,7 @@ def test_array(self):
22
23
assert ap.shape == (20,20), "Shape Error"
24
25
- assert (np.array(array_part)[5][0] - 0.463) < 0.001, "Data Error"
+ assert (np.array(array_part)[0][5][0] - 0.463) < 0.001, "Data Error"
26
assert (np.array(ap)[5][0] - 0.803) < 0.001, "Data Error"
27
28
if __name__ == '__main__':
0 commit comments