Skip to content

Commit

Permalink
update functional download script
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebystrom committed Aug 17, 2024
1 parent c7588a3 commit 2105d3a
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions scripts/download_functionals.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,11 @@
savedir = os.path.basename(os.path.join(basedir, "../functionals"))

os.makedirs(savedir, exist_ok=True)
links = {
"CIDER23X_NL_GGA": "16IF81oS3Snqp96KdS43orSmpmNyRKFEs",
"CIDER23X_NL_MGGA_DTR": "1njP58rnZL0L523hEiwXdQ9YoBTlp0Uev",
"CIDER23X_NL_MGGA_PBE": "1sVofPzXu4eN2N0cDSC0wawnvNjqCoXhi",
"CIDER23X_NL_MGGA": "1Y_pGWGnuzH7PiTT1UntnCga4NPIXBh0m",
"CIDER23X_SL_GGA": "1laNkInAIq1EfHACfOf5hUpqL7eWFpoA1",
"CIDER23X_SL_MGGA": "1kmYuG50OhTCNB8QVIEHLm-cEQ8mMjwT8",
"CIDER24Xe": "1tFKAMvfYJcUZEz11uFSl-DXGW-47l9SV",
"CIDER24Xne": "1OUcWv18e2vM0eSDyiSl1dm9g3A7Wu5_3",
}

os.chdir(savedir)
cmd = "wget --no-check-certificate 'https://docs.google.com/uc?export=download&id={}' -O {}"
for name, linkid in links.items():
fname = "{}.yaml".format(name)
mycmd = cmd.format(linkid, fname)
subprocess.call(mycmd, shell=True)
cmd = "wget 'https://zenodo.org/api/records/13336814/files-archive' -O cider_functionals.zip"
unzip = "unzip cider_functionals.zip"
rm = "rm -r cider_functionals.zip"
subprocess.call(cmd, shell=True)
subprocess.call(unzip, shell=True)
subprocess.call(rm, shell=True)

0 comments on commit 2105d3a

Please sign in to comment.