ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/updateinfo.py
(Generate patch)

Comparing UserCode/VHbb/python/updateinfo.py (file contents):
Revision 1.5 by peller, Thu Aug 2 16:03:52 2012 UTC vs.
Revision 1.7 by peller, Wed Jan 16 09:56:56 2013 UTC

# Line 9 | Line 9 | name=sys.argv[2]
9   #type='BKG'
10   attribute=sys.argv[3]
11   #attribute='split'
12 < newvalue=sys.argv[4]
12 > newvalue=eval(sys.argv[4])
13   #newvalue=0.5
14  
15  
# Line 18 | Line 18 | info = pickle.load(infofile)
18   infofile.close()
19  
20   for job in info:
21 <    if (job.name == name) or (name == "all"):
21 >    if (name in job.name) or (name == "all"):
22          print '\t - %s' %(job.name)
23          setattr(job,attribute,newvalue)
24  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines