further working on getting rid of hyperopt

This commit is contained in:
Gert Wohlgemuth 2018-05-24 00:04:58 -07:00
parent 669f596ce7
commit d4250222f8

View File

@ -176,6 +176,11 @@ def __evaluate(data):
""" """
strategy = urlsafe_b64decode(data['content']).decode('utf-8') 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("loaded strategy")
# print(strategy) # print(strategy)
# try to load the strategy # try to load the strategy