-
Notifications
You must be signed in to change notification settings - Fork 12
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
ValueError from xcontest igc file #4
Comments
Change line 110 to: |
I fixed it in my fork of the code. Feel free to commit my changes. |
Hi! I had the same problem... this is what happened the first time I run it:
Then I change line 110 as @ScottStanton suggested and this is the error I got now:
Please help! |
Can you post lines 107 to 114 from your code? |
Sure:
|
Indent the line that start with 'flight' to match the indentation of the 'print' below it. |
Wow... that was it. Thanks! |
Hello there, I'm having the following error... any idea? thanks!
Traceback (most recent call last):
File "igc2csv.py", line 253, in
flight = parse_igc(flight)
File "igc2csv.py", line 16, in parse_igc
recordtypes[linetype](line, flight)
File "igc2csv.py", line 101, in logline_H
headertypes[line[1:5]](line[5:], flight)
File "igc2csv.py", line 110, in logline_H_FDTE
flight['flightdate'] = datetime.date(int(line[4:6])+2000, int(line[2:4]), int(line[0:2]))
ValueError: invalid literal for int() with base 10: ':0'
The text was updated successfully, but these errors were encountered: