Created
June 2, 2016 17:37
-
-
Save sashabaranov/dad718acab06d9f5582ef498be4e5954 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import json | |
print sys.argv | |
from DIRAC.Core.Base import Script | |
Script.parseCommandLine( ignoreErrors = True ) | |
from LHCbDIRAC.BookkeepingSystem.Client.BookkeepingClient import BookkeepingClient | |
bk = BookkeepingClient() | |
#print bk.setRunAndProcessingPassDataQuality(158013 ,'/Real Data','OK') | |
flag = sys.argv[-1] | |
dirac_pathes = json.loads(sys.argv[-2]) | |
for path in dirac_pathes: | |
print "Path:", path | |
print bk.setRunAndProcessingPassDataQuality(int(sys.argv[-2]), path, flag) |
zmathe
commented
Jun 3, 2016
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment