From 88a4f21a41d94ef7f7ca49b826a1865ba7c8888d Mon Sep 17 00:00:00 2001 From: Nathan Goldbaum Date: Tue, 6 Feb 2024 12:12:44 -0700 Subject: [PATCH] Decrease runtime of examples Signed-off-by: Nathan Goldbaum --- csp/examples/e_02_show_graph.py | 2 +- csp/examples/e_13_feedback.py | 2 +- csp/examples/e_14_user_adapters_03_pushinput.py | 3 ++- csp/examples/e_14_user_adapters_04_adaptermanager_pushinput.py | 2 +- .../e_14_user_adapters_06_adaptermanager_inputoutput.py | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/csp/examples/e_02_show_graph.py b/csp/examples/e_02_show_graph.py index 671a4963..4b93a5bc 100644 --- a/csp/examples/e_02_show_graph.py +++ b/csp/examples/e_02_show_graph.py @@ -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)) diff --git a/csp/examples/e_13_feedback.py b/csp/examples/e_13_feedback.py index d1ad9a61..ee6429d9 100644 --- a/csp/examples/e_13_feedback.py +++ b/csp/examples/e_13_feedback.py @@ -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__": diff --git a/csp/examples/e_14_user_adapters_03_pushinput.py b/csp/examples/e_14_user_adapters_03_pushinput.py index 838da4e3..85e2b2ac 100644 --- a/csp/examples/e_14_user_adapters_03_pushinput.py +++ b/csp/examples/e_14_user_adapters_03_pushinput.py @@ -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)) diff --git a/csp/examples/e_14_user_adapters_04_adaptermanager_pushinput.py b/csp/examples/e_14_user_adapters_04_adaptermanager_pushinput.py index ca9ae4fd..6bcdb1e5 100644 --- a/csp/examples/e_14_user_adapters_04_adaptermanager_pushinput.py +++ b/csp/examples/e_14_user_adapters_04_adaptermanager_pushinput.py @@ -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) diff --git a/csp/examples/e_14_user_adapters_06_adaptermanager_inputoutput.py b/csp/examples/e_14_user_adapters_06_adaptermanager_inputoutput.py index c2a789f6..a9b47b3e 100644 --- a/csp/examples/e_14_user_adapters_06_adaptermanager_inputoutput.py +++ b/csp/examples/e_14_user_adapters_06_adaptermanager_inputoutput.py @@ -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)