Page MenuHomec4science

createJobs.py
No OneTemporary

File Metadata

Created
Fri, May 10, 11:34

createJobs.py

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

Event Timeline