Skip to content

Commit 44f9dbb

Browse files
committed
fixed an infinite loop oops
1 parent 26a4c03 commit 44f9dbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ def shuffle(arr: np.ndarray) -> np.ndarray:
1919
def main():
2020
R = np.ones((N))*R0
2121
R = shuffle(R)
22-
isFine = True
22+
isFine = False
2323
N_subcl_perc = 0.1
2424
iter = 1
25-
while isFine:
25+
while not isFine:
2626
CCA_ok, PCA_ok = CCA_subcluster(R,N,DF,Kf, iter, N_subcl_perc, EXT_CASE)
2727
isFine = CCA_ok and PCA_ok
2828
if not isFine:

0 commit comments

Comments
 (0)