Skip to content

Commit

Permalink
readPDH: detection of XML section updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ibressler committed Nov 11, 2021
1 parent 45e203c commit 096521f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readPDH.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def readPDH(ifname):
inline = ifile.readline()

inline = ifile.readline()
while inline != '<?xml version="1.0" encoding="utf-8"?>\n':
while (inline != '<?xml version="1.0" encoding="utf-8"?>\n') and (inline != '<fileinfo version="3.80.110606">\n'):
if ((float(inline.split(" ")[1]) < qlims[1]) & (float(inline.split(" ")[1]) >= qlims[0])):
q.append( float(inline.split(" ")[1]) )
I.append( float(inline.split(" ")[2]) )
Expand Down

0 comments on commit 096521f

Please sign in to comment.