Skip to content

Commit f9336ac

Browse files
committed
learn3 terminates n-1
1 parent 122a371 commit f9336ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ratc/learn3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import numpy as np
44
import matplotlib.pyplot as plt
55
import time
6-
GENERATE_PLOT = 1
6+
GENERATE_PLOT = 0
77
concore.delay = 0.002
88
concore2.delay = 0.002
99
concore2.inpath = concore.inpath
@@ -19,7 +19,7 @@
1919
ym = concore.initval(init_simtime_ym)
2020
ut = (concore.maxtime+1)*[np.array(u).T]
2121
ymt = (concore.maxtime+1)*[np.array(ym).T]
22-
while(concore.simtime<concore.maxtime):
22+
while(concore.simtime<concore.maxtime-1):
2323
while concore.unchanged():
2424
u = concore.read(concore.iport["VCY"],"u",init_simtime_u)
2525
ut[int(concore.simtime)] = np.array(u).T

0 commit comments

Comments
 (0)