From 10022a66f7244e50537f5cbf53c7392a12f26d46 Mon Sep 17 00:00:00 2001 From: Jeff Kinnison Date: Mon, 5 Nov 2018 14:19:54 -0500 Subject: [PATCH] hotfix for renaming results.json --- shadho/shadho.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shadho/shadho.py b/shadho/shadho.py index 9a462c9..bdb7733 100644 --- a/shadho/shadho.py +++ b/shadho/shadho.py @@ -83,7 +83,7 @@ class Shadho(object): """ - def __init__(self, cmd, spec, files=None, use_complexity=True, + def __init__(self, cmd, spec, backend=None, files=None, use_complexity=True, use_priority=True, timeout=600, max_tasks=100, await_pending=False, max_resubmissions=0): self.config = ShadhoConfig() @@ -116,6 +116,7 @@ def __init__(self, cmd, spec, files=None, use_complexity=True, self.config.save_config(self.__tmpdir) self.add_input_file(os.path.join(self.__tmpdir, '.shadhorc')) + self.backend = self.backend def __del__(self): if hasattr(self, '__tmpdir') and self.__tmpdir is not None: @@ -208,6 +209,7 @@ def run(self): # Set up the backend hyperparameter generation and database if not hasattr(self, 'backend'): self.backend = pyrameter.build(self.spec, + db=self.backend, complexity_sort=self.use_complexity, priority_sort=self.use_priority)