Skip to content

Commit d79edd6

Browse files
authored
Merge pull request #37 from gordonca/gordonca_fix_samplecode
Added lsf.lsb_closestream() so more stream files can be read
2 parents 85df65d + 2878191 commit d79edd6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/readstream.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def read_eventrec(path):
6060
else:
6161
flag = 0
6262

63+
lsf.lsb_closestream(path)
64+
6365
def read_streamline(path):
6466
"""
6567
Use lsb_readstreamline() to parse the file
@@ -91,3 +93,4 @@ def read_streamline(path):
9193
# read_streamline("/home/youname/lsf_top/work/yourcluster/logdir/stream/lsb.stream")
9294
#read_streamline(sys.argv[1])
9395
read_eventrec(sys.argv[1])
96+
read_eventrec(sys.argv[1])

0 commit comments

Comments
 (0)