diff --git a/python/PRConfig/FilesFromDirac.py b/python/PRConfig/FilesFromDirac.py index e9c167b14e5633f590ae0e6158a92e02f444a418..a0d8de86134035f267ab803febfc6c4cb5be09c9 100644 --- a/python/PRConfig/FilesFromDirac.py +++ b/python/PRConfig/FilesFromDirac.py @@ -14,7 +14,11 @@ import subprocess from collections import defaultdict -def get_access_urls_mc(bkkpath, evttype, filetypes, sites_to_remove=[], max_files=500): +def get_access_urls_mc(bkkpath, + evttype, + filetypes, + sites_to_remove=[], + max_files=500): customEnv = {} # set custom grid proxy path if exists @@ -70,7 +74,9 @@ def get_access_urls_mc(bkkpath, evttype, filetypes, sites_to_remove=[], max_file # Filter out some failing grid sites/files from the list excluded = ['stfc.ac.uk'] + sites_to_remove - lfns = [lfn for lfn in lfns_tmp if not any(site in lfn for site in excluded)] + lfns = [ + lfn for lfn in lfns_tmp if not any(site in lfn for site in excluded) + ] lfns = sorted(lfns, key=lambda str: not "eoslhcb.cern.ch" in str) return lfns @@ -141,13 +147,12 @@ def get_access_urls_data(bkkpath, sites_to_remove=[], max_files=500): # Filter out some failing grid sites/files from the list excluded = ['stfc.ac.uk'] + sites_to_remove - lfns = [lfn for lfn in lfns_tmp if not any(site in lfn for site in excluded)] + lfns = [ + lfn for lfn in lfns_tmp if not any(site in lfn for site in excluded) + ] lfns = sorted(lfns, key=lambda str: not "eoslhcb.cern.ch" in str) return lfns # TODO warn if some of the first N files was not resolved to a URL # since then one would get numerically different results. - - -