From d4250222f83bd2c126602ccf72370e7b4e194cf0 Mon Sep 17 00:00:00 2001 From: Gert Wohlgemuth Date: Thu, 24 May 2018 00:04:58 -0700 Subject: [PATCH 1/2] further working on getting rid of hyperopt --- freqtrade/aws/strategy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/freqtrade/aws/strategy.py b/freqtrade/aws/strategy.py index 7c0562d3f..9d0fb145c 100644 --- a/freqtrade/aws/strategy.py +++ b/freqtrade/aws/strategy.py @@ -176,6 +176,11 @@ def __evaluate(data): """ strategy = urlsafe_b64decode(data['content']).decode('utf-8') + + # comment out hyper opt references, they are no supported here + # due to lambda size limitations + strategy = "\n".join(list(map(lambda x: "#{}".format(x) if "hyperopt" in x else x, strategy.split("\n")))) + # print("loaded strategy") # print(strategy) # try to load the strategy From b478ad76b22f31ed2f2f465e7f29d9847988f119 Mon Sep 17 00:00:00 2001 From: Gert Wohlgemuth Date: Thu, 24 May 2018 00:05:34 -0700 Subject: [PATCH 2/2] further working on getting rid of hyperopt --- freqtrade/aws/strategy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/freqtrade/aws/strategy.py b/freqtrade/aws/strategy.py index 9d0fb145c..21f364a5a 100644 --- a/freqtrade/aws/strategy.py +++ b/freqtrade/aws/strategy.py @@ -179,7 +179,11 @@ def __evaluate(data): # comment out hyper opt references, they are no supported here # due to lambda size limitations - strategy = "\n".join(list(map(lambda x: "#{}".format(x) if "hyperopt" in x else x, strategy.split("\n")))) + strategy = "\n".join( + list( + map( + lambda x: "#{} # this version does not support hyperopt!".format(x) if "hyperopt" in x else x, + strategy.split("\n")))) # print("loaded strategy") # print(strategy)