Page MenuHomec4science

createJobs.py
No OneTemporary

File Metadata

Created
Tue, May 21, 16:59

createJobs.py

#!/usr/bin/env python
#First we need to set the python headers and to import the \blackdynamite modules
from BlackDynamite import base
from BlackDynamite import run
from BlackDynamite import job
from BlackDynamite import bdparser
#Then you have to create a generic black dynamite parser
#and parse the system (including the connection parameters and credentials)
parser = bdparser.BDParser()
params = parser.parseBDParameters()
#Then we can connect to the black dynamite database
base = base.Base(**params)
# create of job object
job = job.Job(base)
#specify a range of jobs
job["param1"] = 10
job["param2"] = 3.14
job["param3"] = 'toto'
#creation of the jobs on the database
base.createParameterSpace(job)

Event Timeline