Skip to content
Snippets Groups Projects

Modify the functions in FileFromDirac

Merged Chenjia Zhang requested to merge zcjmodifyfilefromdirac into master
All threads resolved!
1 file
+ 0
3
Compare changes
  • Side-by-side
  • Inline
@@ -111,9 +111,6 @@ 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")
print(
"#### Checking output of . /cvmfs/lhcb.cern.ch/lib/LbEnv --quiet; lb-dirac dirac-dms-lfn-accessURL --Terminal"
@@ -139,7+136,7 @@
if successful:
m = re.match(r' +([^: ]*) *: *(.*)', line)
if m:
urls[m.group(1)].append(m.group(2))
# Get the first URL (if more than one) for each LFN, while skipping
# LFNs for which we couldn't find an URL (e.g. a site was down).
Loading