Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91464819
createStudy.py.cmake
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
Mon, Nov 11, 09:33
Size
533 B
Mime Type
text/x-python
Expires
Wed, Nov 13, 09:33 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22244016
Attached To
R3127 blackdynamite
createStudy.py.cmake
View Options
#!/usr/bin/env python
import
BlackDynamite
as
BD
parser
=
BD.
BDParser
()
params
=
parser.
parseBDParameters
()
base
=
BD.
Base
(
**params
)
#creation of job description
myjob_desc
=
BD.
Job
(
base
)
myjob_desc.types["param1"]
=
int
myjob_desc.types["param2"]
=
int
#creation of run description
myruns_desc
=
BD.
Run
(
base
)
myruns_desc.types["value1"]
=
str
myruns_desc.types["value2"]
=
str
#creation de la base
quantities
=
{}
base.
createBase
(
myjob_desc,
myruns_desc,
quantities,
**params
)
Event Timeline
Log In to Comment