WarpX
|
Variables | |
ConfigUpdater = None | |
REPO_DIR = Path(__file__).parent.parent.parent.absolute() | |
REPLY = input("Are you sure you want to continue? [y/N] ") | |
amrex_gh = requests.get('https://api.github.com/repos/AMReX-Codes/amrex/commits/development') | |
amrex_HEAD = amrex_gh.json()["sha"] | |
amrex_cmake_path = str(REPO_DIR.joinpath("cmake/dependencies/AMReX.cmake")) | |
string | amrex_branch = f"unknown (format issue in {amrex_cmake_path})" |
encoding | |
r_minimal | |
string | amrex_minimal = f"unknown (format issue in {amrex_cmake_path})" |
amrex_new_branch = input(f"Update AMReX commit/branch/sha: ").strip() | |
today = datetime.date.today().strftime("%y.%m") | |
amrex_new_minimal = input(f"New minimal AMReX version (e.g. {today})? ").strip() | |
run_test_path = str(REPO_DIR.joinpath("run_test.sh")) | |
run_test_content = f.read() | |
ci_gnumake_path = str(REPO_DIR.joinpath(".github/workflows/cuda.yml")) | |
ci_gnumake_content = f.read() | |
tests_ini_path = str(REPO_DIR.joinpath("Regression/WarpX-tests.ini")) | |
cp = ConfigUpdater() | |
optionxform | |
value | |
tests_gpu_ini_path = str(REPO_DIR.joinpath("Regression/WarpX-GPU-tests.ini")) | |
amrex_cmake_content = f.read() | |
updateAMReX.amrex_branch = f"unknown (format issue in {amrex_cmake_path})" |
updateAMReX.amrex_cmake_content = f.read() |
updateAMReX.amrex_cmake_path = str(REPO_DIR.joinpath("cmake/dependencies/AMReX.cmake")) |
updateAMReX.amrex_gh = requests.get('https://api.github.com/repos/AMReX-Codes/amrex/commits/development') |
updateAMReX.amrex_HEAD = amrex_gh.json()["sha"] |
updateAMReX.amrex_minimal = f"unknown (format issue in {amrex_cmake_path})" |
string updateAMReX.amrex_new_branch = input(f"Update AMReX commit/branch/sha: ").strip() |
updateAMReX.ci_gnumake_content = f.read() |
updateAMReX.ci_gnumake_path = str(REPO_DIR.joinpath(".github/workflows/cuda.yml")) |
updateAMReX.ConfigUpdater = None |
updateAMReX.cp = ConfigUpdater() |
updateAMReX.encoding |
updateAMReX.optionxform |
updateAMReX.r_minimal |
updateAMReX.REPLY = input("Are you sure you want to continue? [y/N] ") |
updateAMReX.REPO_DIR = Path(__file__).parent.parent.parent.absolute() |
updateAMReX.run_test_content = f.read() |
updateAMReX.run_test_path = str(REPO_DIR.joinpath("run_test.sh")) |
updateAMReX.tests_ini_path = str(REPO_DIR.joinpath("Regression/WarpX-tests.ini")) |
updateAMReX.today = datetime.date.today().strftime("%y.%m") |
updateAMReX.value |