Skip to content

Commit

Permalink
propagate speedup to filesFromDASQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
kpedro88 committed Apr 16, 2020
1 parent 6c56c41 commit ca45cfa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Configuration/Applications/python/ConfigBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,14 @@ def filesFromDASQuery(query,option="",s=None):
if line.count(".root")>=2:
#two files solution...
entries=line.replace("\n","").split()
if not entries[0] in prim:
prim.append(entries[0])
if not entries[1] in sec:
sec.append(entries[1])
prim.append(entries[0])
sec.append(entries[1])
elif (line.find(".root")!=-1):
entry=line.replace("\n","")
if not entry in prim:
prim.append(entry)
prim.append(entry)
# remove any duplicates
prim = sorted(list(set(prim)))
sec = sorted(list(set(sec)))
if s:
if not hasattr(s,"fileNames"):
s.fileNames=cms.untracked.vstring(prim)
Expand Down

0 comments on commit ca45cfa

Please sign in to comment.