From fee211b83b8b67362493bdc6e193849c7d3e6fa6 Mon Sep 17 00:00:00 2001 From: aknecht2 <aknecht2@unl.edu> Date: Mon, 14 Mar 2016 15:02:02 -0500 Subject: [PATCH] Added config loading. --- chipathlon/workflow.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chipathlon/workflow.py b/chipathlon/workflow.py index ad84980..bc60d1f 100644 --- a/chipathlon/workflow.py +++ b/chipathlon/workflow.py @@ -17,7 +17,7 @@ from Pegasus.DAX3 import * class Workflow(object): - def __init__(self, jobhome, run_file, param_file, host, username, password): + def __init__(self, jobhome, run_file, param_file, config_file, host, username, password): # Initialize db connection self.mdb = chipathlon.db.MongoDB(host, username, password) # Jobname info & err @@ -27,6 +27,9 @@ class Workflow(object): # Input file info self.run_file = run_file self.param_file = param_file + self.config_file = config_file + with open(self.config_file, "r") as rh: + self.config = yaml.load(rh) # Dax specific info self.dax = ADAG(self.jobname) self.executables = {} -- GitLab