WarpX
Namespaces | Variables
updatepyAMReX.py File Reference

Namespaces

 updatepyAMReX
 

Variables

 updatepyAMReX.REPO_DIR = Path(__file__).parent.parent.parent.absolute()
 
 updatepyAMReX.REPLY = input("Are you sure you want to continue? [y/N] ")
 
 updatepyAMReX.pyamrex_gh = requests.get('https://api.github.com/repos/AMReX-Codes/pyamrex/commits/development')
 
 updatepyAMReX.pyamrex_HEAD = pyamrex_gh.json()["sha"]
 
 updatepyAMReX.pyamrex_cmake_path = str(REPO_DIR.joinpath("cmake/dependencies/pyAMReX.cmake"))
 
string updatepyAMReX.pyamrex_branch = f"unknown (format issue in {pyamrex_cmake_path})"
 
 updatepyAMReX.encoding
 
 updatepyAMReX.r_minimal
 
string updatepyAMReX.pyamrex_minimal = f"unknown (format issue in {pyamrex_cmake_path})"
 
 updatepyAMReX.pyamrex_new_branch = input(f"Update pyAMReX commit/branch/sha: ").strip()
 
 updatepyAMReX.today = datetime.date.today().strftime("%y.%m")
 
 updatepyAMReX.pyamrex_new_minimal = input(f"New minimal pyAMReX version (e.g. {today})? ").strip()
 
 updatepyAMReX.pyAMReX_cmake_content = f.read()