Skip to content

Commit b09d1be

Browse files
committed
Added command line utility for checking on runs.
1 parent 9714289 commit b09d1be

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

autoutil.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env python3
2+
''' Simple utilities for interacting with autogen runs.'''
3+
4+
import pickle as pkl
5+
import sys
6+
import argparse
7+
8+
def get_info(pickle):
9+
print("Info about %s..."%pickle)
10+
man=pkl.load(open(pickle,'rb'))
11+
12+
print(" Queue id: {}".format(man.runner.queueid))
13+
try:
14+
print(" Properties queue id: {}".format(man.prunner.queueid))
15+
except AttributeError:
16+
pass
17+
18+
if __name__=='__main__':
19+
20+
parser=argparse.ArgumentParser("Autogen untilities.")
21+
parser.add_argument('manager',type=str,help='Pickle file to look at.')
22+
# Can add more options as needed.
23+
24+
args=parser.parse_args()
25+
get_info(args.manager)
26+

0 commit comments

Comments
 (0)