diff options
Diffstat (limited to 'parse_exps.py')
-rwxr-xr-x | parse_exps.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parse_exps.py b/parse_exps.py index ee1462c..7c75f5f 100755 --- a/parse_exps.py +++ b/parse_exps.py | |||
@@ -134,7 +134,7 @@ def main(): | |||
134 | 134 | ||
135 | sys.stderr.write("Parsing data...\n") | 135 | sys.stderr.write("Parsing data...\n") |
136 | 136 | ||
137 | procs = min(len(exps), cpu_count()/2) | 137 | procs = min(len(exps), max(cpu_count()/2, 1)) |
138 | pool = Pool(processes=procs) | 138 | pool = Pool(processes=procs) |
139 | pool_args = zip(exps, [opts.force]*len(exps)) | 139 | pool_args = zip(exps, [opts.force]*len(exps)) |
140 | enum = pool.imap_unordered(parse_exp, pool_args, 1) | 140 | enum = pool.imap_unordered(parse_exp, pool_args, 1) |
@@ -171,8 +171,8 @@ def main(): | |||
171 | 171 | ||
172 | # No csvs to write, assume user meant to print out data | 172 | # No csvs to write, assume user meant to print out data |
173 | if dir_map.is_empty(): | 173 | if dir_map.is_empty(): |
174 | sys.stderr.write("Too little data to make csv files.\n") | ||
175 | if not opts.verbose: | 174 | if not opts.verbose: |
175 | sys.stderr.write("Too little data to make csv files.\n") | ||
176 | for key, exp in result_table: | 176 | for key, exp in result_table: |
177 | for e in exp: | 177 | for e in exp: |
178 | print(e) | 178 | print(e) |