Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F63662528
createJobs.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, May 21, 16:59
Size
749 B
Mime Type
text/x-python
Expires
Thu, May 23, 16:59 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17803159
Attached To
R3127 blackdynamite
createJobs.py
View Options
#!/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
Log In to Comment