Skip to content

Commit 1bea088

Browse files
authored
Merge pull request #236 from Hemanth21k/issue_215_fix
issue 215 fix
2 parents 2b81a8e + f785165 commit 1bea088

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/exercises100.ktx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,8 +1173,8 @@ Z_start = (np.maximum(Z_start,0)).tolist()
11731173
R_stop = np.maximum(R_start, (R_stop - np.maximum(Z_stop-Zs,0))).tolist()
11741174
Z_stop = (np.minimum(Z_stop,Zs)).tolist()
11751175

1176-
r = [slice(start,stop) for start,stop in zip(R_start,R_stop)]
1177-
z = [slice(start,stop) for start,stop in zip(Z_start,Z_stop)]
1176+
r = tuple([slice(start,stop) for start,stop in zip(R_start,R_stop)])
1177+
z = tuple([slice(start,stop) for start,stop in zip(Z_start,Z_stop)])
11781178
R[r] = Z[z]
11791179
print(Z)
11801180
print(R)

0 commit comments

Comments
 (0)