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 /gen/generator.py | |
| parent | d4b955262433d927e966e49d59179808e5d5239f (diff) | |
Convert boolean strings to actual bools in dp
Diffstat (limited to 'gen/generator.py')
| -rw-r--r-- | gen/generator.py | 5 |
1 files changed, 3 insertions, 2 deletions
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): |
