Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix several bugs in tiologparse #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions tiotools/tiologparse.py
Original file line number Diff line number Diff line change
@@ -155,8 +155,7 @@ def main():
[print(f"- {route}") for route in routes]

if args.separate:
exit
stop
exit(0)

# Remove routes that don't have valid start times
for idx,route in enumerate(list(routes)): # copy the routes
@@ -165,8 +164,6 @@ def main():
tempfiles.pop(route)
tempfilenames.pop(route)
sensors.pop(route)
datarates.pop(route)
finaltimes.pop(route)
routes.remove(route)


@@ -243,7 +240,7 @@ def main():
time = float(linesegment.split('\t')[0])
except:
break
while time <= firsttime:
while time < firsttime:
linesegment = fd.readline()
try:
time = float(linesegment.split('\t')[0])