Created
December 16, 2022 16:38
-
-
Save kratsg/3e09f19e49ed0f981b67e6b36a05a2ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import subprocess | |
import itkdb | |
fpath = "~/VBFSUSY_13_Higgsino_150.root" | |
eos_path = "/eos/atlas/test/itkpd/d/e/8/debug_ewans_file" | |
data = requests.post(f'https://itkpd2eos.unicornuniversity.net/generate-token?path={eos_path}&permissions=rw') | |
eos_token = data.json()['token'] | |
fp = open(fpath, 'rb') | |
requests.put(f"https://eosatlas.cern.ch{eos_path}?authz={eos_token}", fp=fp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment