From 80750cd8ab2b2111cccd28badeb296c9cef8b8db Mon Sep 17 00:00:00 2001 From: Bemhreth Date: Thu, 20 Jan 2022 22:50:58 +0300 Subject: [PATCH 1/2] fixed passing values issue --- user_data/strategies/util.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/user_data/strategies/util.py b/user_data/strategies/util.py index ea293bef5..6300cf7c0 100644 --- a/user_data/strategies/util.py +++ b/user_data/strategies/util.py @@ -2,11 +2,12 @@ import subprocess IS_BACKTEST = False -EXECUTION_PATH = "/root/workspace/execution/" +EXECUTION_PATH = "/root/workspace2/execution/" def launcher(mode, coin, brain): subprocess.call("python3 "+EXECUTION_PATH+"launcher.py " + mode + " " + coin + " " + brain, shell=True) def back_tester(date_time, coin, brain): - date_time = date_time.replace(" ", "#") - subprocess.call("python3 "+ EXECUTION_PATH + "back_tester.py " + date_time + " " + coin + " " + brain + "0.45 3", shell=True) + date = str(date_time) + date = date.replace(" ", "#") + subprocess.call("python3 "+ EXECUTION_PATH + "back_tester.py " + date + " " + coin + " " + brain + " 0.45 3", shell=True) From 34aea171662631e45f9741349366ae247b6fd1c6 Mon Sep 17 00:00:00 2001 From: Bemhreth Date: Fri, 21 Jan 2022 10:46:38 +0300 Subject: [PATCH 2/2] WORKSPACE_PATH implemented --- user_data/strategies/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_data/strategies/util.py b/user_data/strategies/util.py index 6300cf7c0..d66d26e39 100644 --- a/user_data/strategies/util.py +++ b/user_data/strategies/util.py @@ -1,8 +1,8 @@ import subprocess IS_BACKTEST = False - -EXECUTION_PATH = "/root/workspace2/execution/" +WORKSPACE_PATH = "workspace2" if IS_BACKTEST else "workspace" +EXECUTION_PATH = "/root/" + WORKSPACE_PATH + "/execution/" def launcher(mode, coin, brain): subprocess.call("python3 "+EXECUTION_PATH+"launcher.py " + mode + " " + coin + " " + brain, shell=True)