Newer
Older
buczekp
committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
CODE = "Code"
TYPE = "Type"
SIZE = "Size"
LOCATION = "Location"
SPEED_HINT = "Speed Hint"
MAIN_PATTERN = "Main Data Set Pattern"
MAIN_PATH = "Main Data Set Path"
INSTANCE = "Instance"
SPACE = "Space"
PROJECT = "Project"
EXPERIMENT_CODE = "Experiment Code"
EXPERIMENT_IDENTIFIER = "Experiment Identifier"
EXPERIMENT_TYPE = "Experiment Type"
SAMPLE_CODE = "Sample Code"
SAMPLE_IDENTIFIER = "Sample Identifier"
SAMPLE_TYPE = "Sample Type"
def describe(dataSets, tableBuilder):
tableBuilder.addHeader(CODE)
tableBuilder.addHeader(TYPE)
tableBuilder.addHeader(SIZE)
tableBuilder.addHeader(LOCATION)
tableBuilder.addHeader(SPEED_HINT)
tableBuilder.addHeader(MAIN_PATTERN)
tableBuilder.addHeader(MAIN_PATH)
tableBuilder.addHeader(INSTANCE)
tableBuilder.addHeader(SPACE)
tableBuilder.addHeader(PROJECT)
tableBuilder.addHeader(EXPERIMENT_CODE)
tableBuilder.addHeader(EXPERIMENT_IDENTIFIER)
tableBuilder.addHeader(EXPERIMENT_TYPE)
tableBuilder.addHeader(SAMPLE_CODE)
tableBuilder.addHeader(SAMPLE_IDENTIFIER)
tableBuilder.addHeader(SAMPLE_TYPE)
for dataSet in dataSets:
print "script reporting " + dataSet.getDataSetCode()
row = tableBuilder.addRow()
row.setCell(CODE, dataSet.getDataSetCode())
row.setCell(TYPE, dataSet.getDataSetTypeCode())
row.setCell(SIZE, dataSet.getDataSetSize())
row.setCell(LOCATION, dataSet.getDataSetLocation())
row.setCell(SPEED_HINT, dataSet.getSpeedHint())
row.setCell(MAIN_PATTERN, dataSet.getMainDataSetPattern())
row.setCell(MAIN_PATH, dataSet.getMainDataSetPath())
row.setCell(INSTANCE, dataSet.getInstanceCode())
row.setCell(SPACE, dataSet.getSpaceCode())
row.setCell(PROJECT, dataSet.getProjectCode())
row.setCell(EXPERIMENT_CODE, dataSet.getExperimentCode())
row.setCell(EXPERIMENT_IDENTIFIER, dataSet.getExperimentIdentifier())
row.setCell(EXPERIMENT_TYPE, dataSet.getExperimentTypeCode())
row.setCell(SAMPLE_CODE, dataSet.getSampleCode())
row.setCell(SAMPLE_IDENTIFIER, dataSet.getSampleIdentifier())
row.setCell(SAMPLE_TYPE, dataSet.getSampleTypeCode())