diff --git a/tests/population/scaling/scaling_script.py b/tests/population/scaling/scaling_script.py index 9e459bb74b7f5974e4577e09a664e9cd764f647f..b7b938f555c3399f410038fe445b3dd1aae67c6a 100644 --- a/tests/population/scaling/scaling_script.py +++ b/tests/population/scaling/scaling_script.py @@ -18,7 +18,7 @@ hostname = socket.gethostname() # Generate list of cpu amounts to use if amount_of_cpus <= 4: stepsize = 1 -elif 4 < amount_of_cpus <= 24: +elif 4 < amount_of_cpus: stepsize = 2 # elif 24 < amount_of_cpus <= 48: # stepsize = 4 @@ -122,4 +122,4 @@ result_dict['linear'] = linear_times # Write to file with open('scaling_results/{}_{}_systems.json'.format(hostname, total_systems), 'w') as f: - f.write(json.dumps(result_dict)) \ No newline at end of file + f.write(json.dumps(result_dict))