Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F69478418
fillStudy.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, Jul 1, 23:59
Size
915 B
Mime Type
text/x-python
Expires
Wed, Jul 3, 23:59 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18698017
Attached To
R3127 blackdynamite
fillStudy.py.cmake
View Options
#!/usr/bin/env python
import BlackDynamite as BD
print BD.__path__
parser = BD.RunParser()
params = parser.parseBDParameters()
base = BD.Base(**params)
# Create jobs
jobs = BD.Job(base)
jobs["param1"] = [1]
jobs["param2"] = [10]
base.createParameterSpace(jobs)
# Create Runs
myrun = BD.Run(base)
myrun.setEntries(params)
jobSelector = BD.JobSelector(base)
if ("job_constraints" not in params):
params["job_constraints"] = []
job_list = jobSelector.selectJobs(params["job_constraints"])
myrun.execfile = BD.conffile.addFile("launch.sh", base,
content="""
@CMAKE_CURRENT_BINARY_DIR@/test_blackdynamite __BLACKDYNAMITE__run_id__
""")
myrun["exec"] = myrun.execfile.id
myrun["value1"] = "toto"
myrun["value2"] = "second value"
for j in job_list:
myrun.attachToJob(j)
print (j.entries)
print (myrun.entries)
if ("truerun" in params):
base.commit()
Event Timeline
Log In to Comment