WarpX
Variables
updatepyAMReX Namespace Reference

Variables

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

Variable Documentation

◆ encoding

updatepyAMReX.encoding

◆ pyamrex_branch

updatepyAMReX.pyamrex_branch = f"unknown (format issue in {pyamrex_cmake_path})"

◆ pyAMReX_cmake_content

updatepyAMReX.pyAMReX_cmake_content = f.read()

◆ pyamrex_cmake_path

updatepyAMReX.pyamrex_cmake_path = str(REPO_DIR.joinpath("cmake/dependencies/pyAMReX.cmake"))

◆ pyamrex_gh

updatepyAMReX.pyamrex_gh = requests.get('https://api.github.com/repos/AMReX-Codes/pyamrex/commits/development')

◆ pyamrex_HEAD

updatepyAMReX.pyamrex_HEAD = pyamrex_gh.json()["sha"]

◆ pyamrex_minimal

updatepyAMReX.pyamrex_minimal = f"unknown (format issue in {pyamrex_cmake_path})"

◆ pyamrex_new_branch

string updatepyAMReX.pyamrex_new_branch = input(f"Update pyAMReX commit/branch/sha: ").strip()

◆ pyamrex_new_minimal

string updatepyAMReX.pyamrex_new_minimal = input(f"New minimal pyAMReX version (e.g. {today})? ").strip()

◆ r_minimal

updatepyAMReX.r_minimal
Initial value:
1 = re.findall(r'.*set\‍(WarpX_pyamrex_branch\s+"(.+)"\s+.*',
2  f.read(), re.MULTILINE)

◆ REPLY

updatepyAMReX.REPLY = input("Are you sure you want to continue? [y/N] ")

◆ REPO_DIR

updatepyAMReX.REPO_DIR = Path(__file__).parent.parent.parent.absolute()

◆ today

updatepyAMReX.today = datetime.date.today().strftime("%y.%m")