Skip to content

Commit 18cc08d

Browse files
authored
Refactor and clean the comments
1 parent 2e2c29e commit 18cc08d

1 file changed

Lines changed: 5 additions & 14 deletions

File tree

demo/pm.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
import concore
22
import numpy as np
33

4-
#//pm function//
4+
# pm function
55
def pm(u):
66
return u + 0.01
77

8-
#//main//
9-
10-
concore.default_maxtime(150) ##maps to-- for i in range(0,150):
8+
# main
9+
concore.default_maxtime(150)
1110
concore.delay = 0.02
1211

13-
#//initial values-- transforms to string including the simtime as the 0th entry in the list//
14-
# u = np.array([[0.0]])
15-
# ym = np.array([[0.0]])
12+
# initial values-- transforms to string including the simtime as the 0th entry in the list
1613
init_simtime_u = "[0.0, 0.0]"
1714
init_simtime_ym = "[0.0, 0.0]"
1815

@@ -24,13 +21,7 @@ def pm(u):
2421
#####
2522
ym = pm(u)
2623
#####
27-
print(str(concore.simtime) + ". u="+str(u) + "ym="+str(ym));
24+
print(str(concore.simtime) + ". u="+str(u) + "ym="+str(ym))
2825
concore.write(1,"ym",list(ym.T[0]),delta=1)
2926

3027
print("retry="+str(concore.retrycount))
31-
32-
33-
#// main-- to begin with//
34-
#for i in range(0,150):
35-
# ym = pm(u)
36-
# print('u='+repr(u)+' ym='+repr(ym))

0 commit comments

Comments
 (0)