Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81229950
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
Wed, Sep 4, 21:19
Size
533 B
Mime Type
text/x-python
Expires
Fri, Sep 6, 21:19 (2 d)
Engine
blob
Format
Raw Data
Handle
20531949
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