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.1 by peller, Thu Apr 19 13:12:04 2012 UTC vs.
Revision 1.4 by peller, Tue May 29 15:03:19 2012 UTC

# Line 1 | Line 1
1   #!/usr/bin/env python
2 < from samplesinfo import sample
2 > from samplesclass import sample
3   import pickle
4   import sys
5  
6   path=sys.argv[1]
7   #path='/scratch/nov10_inclusive/Z'
8 < type=sys.argv[2]
8 > name=sys.argv[2]
9   #type='BKG'
10   attribute=sys.argv[3]
11   #attribute='split'
# Line 18 | Line 18 | info = pickle.load(infofile)
18   infofile.close()
19  
20   for job in info:
21 <    if job.type == type:
21 >    if job.group in 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