Skip to content
Snippets Groups Projects

Modify the functions in FileFromDirac

Merged Chenjia Zhang requested to merge zcjmodifyfilefromdirac into master
Files
2
@@ -111,9 +111,9 @@ def get_access_urls_data(bkkpath, sites_to_remove=[], max_files=500):
# ensure files are always in same order
file_list.sort()
# if any(file.endswith("raw") for file in file_list):
# raise NotImplementedError(
# "File ending with 'raw' found, please write a script manually")
# if any(file.endswith("raw") for file in file_list):
# raise NotImplementedError(
# "File ending with 'raw' found, please write a script manually")
print(
"#### Checking output of . /cvmfs/lhcb.cern.ch/lib/LbEnv --quiet; lb-dirac dirac-dms-lfn-accessURL --Terminal"
@@ -159,6 +159,7 @@ def get_access_urls_data(bkkpath, sites_to_remove=[], max_files=500):
# TODO warn if some of the first N files was not resolved to a URL
# since then one would get numerically different results.
if __name__ == "__main__":
# bkk_path = ("/MC/Upgrade/Beam7000GeV-Upgrade-MagDown-Nu7.6-25ns-Pythia8"
# "/Sim10-Up08/Digi15-Up04")
Loading