Commit 8c28b69a authored by one's avatar one
Browse files

Format python code

parent 655519cb
......@@ -69,9 +69,7 @@ def __validate_mpi_bind_to(self, bind_to):
"""Validate mpi bind_to option."""
valid_mpi_bind_to = {'slot', 'hwthread', 'core', 'l1cache', 'l2cache', 'l3cache', 'package', 'numa', 'none'}
if bind_to not in valid_mpi_bind_to:
raise ValueError(
'Invalid bind_to value {}. Must be one of: {}'.format(bind_to, sorted(valid_mpi_bind_to))
)
raise ValueError('Invalid bind_to value {}. Must be one of: {}'.format(bind_to, sorted(valid_mpi_bind_to)))
def __validate_sb_config(self): # noqa: C901
"""Validate SuperBench config object.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment