def load_run_request(datafile, pipeline): inputs={} data_loader.load_data(datafile, inputs) data = {} data[RUNID]=str(runid) data[WORKDIR]=str(inputs[WORKDIR]) data[LOGDIR]=str(inputs[LOGDIR]) data[PIPELINE_SCRIPT]=str(pipeline) data[PIPELINE_DIR]='/Users/martinm/Projects/euclid/pipeline_framework/prototype/wfm/trunk/euclidwf_examples/examples' data[PKG_REPOSITORY]='/Users/martinm/Projects/euclid/pipeline_framework/prototype/wfm/trunk/euclidwf_examples/packages/pkgdefs' data[INPUTDATA_PATHS]={str(k):str(v) for k,v in inputs.iteritems() if k not in (WORKDIR,LOGDIR)} data[CREDENTIALS]={DRM_USERNAME:'******',DRM_PASSWORD:'******',WS_USERNAME:'******',WS_PASSWORD:'******'} return json.dumps(data)
def load_run_request(datafile, pipeline): inputs = {} data_loader.load_data(datafile, inputs) data = {} data[RUNID] = str(runid) data[WORKDIR] = str(inputs[WORKDIR]) data[LOGDIR] = str(inputs[LOGDIR]) data[PIPELINE_SCRIPT] = str(pipeline) data[ PIPELINE_DIR] = '/Users/martinm/Projects/euclid/pipeline_framework/prototype/wfm/trunk/euclidwf_examples/examples' data[ PKG_REPOSITORY] = '/Users/martinm/Projects/euclid/pipeline_framework/prototype/wfm/trunk/euclidwf_examples/packages/pkgdefs' data[INPUTDATA_PATHS] = { str(k): str(v) for k, v in inputs.iteritems() if k not in (WORKDIR, LOGDIR) } data[CREDENTIALS] = { DRM_USERNAME: '******', DRM_PASSWORD: '******', WS_USERNAME: '******', WS_PASSWORD: '******' } return json.dumps(data)
def load_inputs(datafile): data = {} data_loader.load_data(datafile, data) return data
def load_inputs(datafile): data={} data_loader.load_data(datafile, data) return data