diff options
author | 2021-12-21 11:03:22 -0800 | |
---|---|---|
committer | 2021-12-21 11:03:22 -0800 | |
commit | 59918d5b98ecca0679fafd12af03f9d6a68fdba7 (patch) | |
tree | ddc709f50f19873e58e41ac18618c7fff9462118 /Tools/PerformanceTests/run_automated.py | |
parent | 1c8935ac0cf9d9b826ed5e02796ff8ba631f9fc7 (diff) | |
download | WarpX-59918d5b98ecca0679fafd12af03f9d6a68fdba7.tar.gz WarpX-59918d5b98ecca0679fafd12af03f9d6a68fdba7.tar.zst WarpX-59918d5b98ecca0679fafd12af03f9d6a68fdba7.zip |
pre-commit: Python imports (#2686)
* pre-commit: Python imports
Add two new Python rules to:
- remove unused imports
- sort imports according to PEP8
* pre-commit: Python imports
Add two new Python rules to:
- remove unused imports
- sort imports according to PEP8
`.editorconfig`: isort options
https://github.com/PyCQA/isort/wiki/isort-Settings
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* move import os (mpl)
* move import yt (mpl)
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup around matplotlib.use
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleaning: double np and lib
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'Tools/PerformanceTests/run_automated.py')
-rw-r--r-- | Tools/PerformanceTests/run_automated.py | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/Tools/PerformanceTests/run_automated.py b/Tools/PerformanceTests/run_automated.py index e8fa512ec..14ce0fed2 100644 --- a/Tools/PerformanceTests/run_automated.py +++ b/Tools/PerformanceTests/run_automated.py @@ -5,24 +5,31 @@ # # License: BSD-3-Clause-LBNL -import os, sys, shutil, datetime, git -import argparse, time, copy +import argparse +import copy +import datetime +import os +import shutil +import sys +import time + +from functions_perftest import (extract_dataframe, get_file_content, + run_batch_nnode, store_git_hash) +import git import pandas as pd -from functions_perftest import store_git_hash, get_file_content, \ - run_batch_nnode, extract_dataframe # Get name of supercomputer and import configuration functions from # machine-specific file if os.getenv("LMOD_SYSTEM_NAME") == 'summit': machine = 'summit' - from summit import executable_name, process_analysis, \ - get_config_command, time_min, get_submit_job_command, \ - get_batch_string, get_run_string, get_test_list + from summit import (executable_name, get_batch_string, get_config_command, + get_run_string, get_submit_job_command, get_test_list, + process_analysis, time_min) if os.getenv("NERSC_HOST") == 'cori': machine = 'cori' - from cori import executable_name, process_analysis, \ - get_config_command, time_min, get_submit_job_command, \ - get_batch_string, get_run_string, get_test_list + from cori import (executable_name, get_batch_string, get_config_command, + get_run_string, get_submit_job_command, get_test_list, + process_analysis, time_min) # typical use: python run_automated.py --n_node_list='1,8,16,32' --automated # Assume warpx, picsar, amrex and perf_logs repos ar in the same directory and |