Skip to content

Commit

Permalink
Decrease runtime of examples
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Goldbaum <[email protected]>
  • Loading branch information
ngoldbaum committed Feb 6, 2024
1 parent 55f1cbf commit 88a4f21
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion csp/examples/e_02_show_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ def my_graph():
if realtime:
csp.run(my_graph, starttime=datetime.utcnow(), endtime=timedelta(seconds=10), realtime=True)
else:
csp.run(my_graph, starttime=datetime(2020, 3, 1), endtime=timedelta(seconds=10))
csp.run(my_graph, starttime=datetime(2020, 3, 1), endtime=timedelta(seconds=5))
2 changes: 1 addition & 1 deletion csp/examples/e_13_feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def main():
if show_graph:
csp.showgraph.show_graph(my_graph)
else:
csp.run(my_graph, starttime=datetime.utcnow(), endtime=timedelta(seconds=60), realtime=True)
csp.run(my_graph, starttime=datetime.utcnow(), endtime=timedelta(seconds=10), realtime=True)


if __name__ == "__main__":
Expand Down
3 changes: 2 additions & 1 deletion csp/examples/e_14_user_adapters_03_pushinput.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@ def my_graph():
print("End of graph building")


csp.run(my_graph, realtime=True, starttime=datetime.utcnow())
csp.run(my_graph, realtime=True, starttime=datetime.utcnow(),
endtime=timedelta(seconds=10))
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ def my_graph():
print("End of graph building")


csp.run(my_graph, starttime=datetime.utcnow(), endtime=timedelta(seconds=10), realtime=True)
csp.run(my_graph, starttime=datetime.utcnow(), endtime=timedelta(seconds=5), realtime=True)
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,4 @@ def my_graph():


if __name__ == "__main__":
csp.run(my_graph, starttime=datetime.utcnow(), endtime=timedelta(seconds=10), realtime=True)
csp.run(my_graph, starttime=datetime.utcnow(), endtime=timedelta(seconds=5), realtime=True)

0 comments on commit 88a4f21

Please sign in to comment.