This commit is contained in:
EC2 Default User 2018-05-24 07:05:52 +00:00
commit 8f0254458c

View File

@ -176,6 +176,15 @@ 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: "#{} # this version does not support hyperopt!".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