Skip to content

Commit

Permalink
temporary fix for dasgoclient (rucio)
Browse files Browse the repository at this point in the history
  • Loading branch information
kskovpen committed Jan 24, 2022
1 parent 2fa8e6b commit 448e58e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Configuration/PyReleaseValidation/python/MatrixUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,20 @@ def __init__(self,dataSet,dataSetParent='',label='',run=[],ls={},files=1000,even
self.dataSetParent = dataSetParent

def das(self, das_options, dataset):
pref = "RUCIO_URL=http://cms-rucio.cern.ch "
if len(self.run) != 0 or self.ls:
queries = self.queries(dataset)[:3]
if len(self.run) != 0:
command = ";".join(["dasgoclient %s --query '%s'" % (das_options, query) for query in queries])
command = ";".join([pref+"dasgoclient %s --query '%s'" % (das_options, query) for query in queries])
else:
lumis = self.lumis()
commands = []
while queries:
commands.append("dasgoclient %s --query 'lumi,%s' --format json | das-selected-lumis.py %s " % (das_options, queries.pop(), lumis.pop()))
commands.append(pref+"dasgoclient %s --query 'lumi,%s' --format json | das-selected-lumis.py %s " % (das_options, queries.pop(), lumis.pop()))
command = ";".join(commands)
command = "({0})".format(command)
else:
command = "dasgoclient %s --query '%s'" % (das_options, self.queries(dataset)[0])
command = pref+"dasgoclient %s --query '%s'" % (das_options, self.queries(dataset)[0])

# Run filter on DAS output
if self.ib_blacklist:
Expand Down

0 comments on commit 448e58e

Please sign in to comment.