diff options
| author | Glenn Elliott <gelliott@cs.unc.edu> | 2014-01-22 16:00:36 -0500 |
|---|---|---|
| committer | Glenn Elliott <gelliott@cs.unc.edu> | 2014-01-22 16:00:36 -0500 |
| commit | 8f00a88beeead3e39a07c0cc4fae8c26496196fd (patch) | |
| tree | 50fc00066abc127d8caab01a0bd586a0009df89a | |
| parent | d4b955262433d927e966e49d59179808e5d5239f (diff) | |
Convert boolean strings to actual bools in dp
| -rw-r--r-- | gen/edf_generators.py | 2 | ||||
| -rw-r--r-- | gen/generator.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gen/edf_generators.py b/gen/edf_generators.py index bd32f47..1dbda11 100644 --- a/gen/edf_generators.py +++ b/gen/edf_generators.py | |||
| @@ -271,7 +271,7 @@ class CflSplitPgmGenerator(EdfPgmGenerator): | |||
| 271 | # compute split factor | 271 | # compute split factor |
| 272 | working_ts = ts | 272 | working_ts = ts |
| 273 | partitions = get_partitions(working_ts, dp.nr_clusters, cluster_sz) | 273 | partitions = get_partitions(working_ts, dp.nr_clusters, cluster_sz) |
| 274 | do_splits = dp.job_splitting == 'True' | 274 | do_splits = dp.job_splitting |
| 275 | is_srt_sched = split.compute_splits_nolock(overheads, False, working_ts, partitions, bypass_split = not do_splits) | 275 | is_srt_sched = split.compute_splits_nolock(overheads, False, working_ts, partitions, bypass_split = not do_splits) |
| 276 | 276 | ||
| 277 | return True, working_ts | 277 | return True, working_ts |
diff --git a/gen/generator.py b/gen/generator.py index 47b2a7c..7a994e9 100644 --- a/gen/generator.py +++ b/gen/generator.py | |||
| @@ -389,8 +389,9 @@ class Generator(object): | |||
| 389 | p = storage() | 389 | p = storage() |
| 390 | p.partitioning = part | 390 | p.partitioning = part |
| 391 | p.clustering = clust | 391 | p.clustering = clust |
| 392 | p.polluting = pol | 392 | # convert from string to bool |
| 393 | p.splitting = splt | 393 | p.polluting = True if pol == 'True' else False |
| 394 | p.splitting = True if splt == 'True' else False | ||
| 394 | shared_params.append(p) | 395 | shared_params.append(p) |
| 395 | 396 | ||
| 396 | for _dp in PgmDesignPointGenerator(exp): | 397 | for _dp in PgmDesignPointGenerator(exp): |
