From 510e9da267ea0ecf3020496f2377d1836dacad83 Mon Sep 17 00:00:00 2001 From: nzkarit Date: Sun, 6 May 2018 11:46:45 +1200 Subject: [PATCH] Bug fix to handle CSV import --- ADSB_Encoder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ADSB_Encoder.py b/ADSB_Encoder.py index e70bc9f..41c149d 100755 --- a/ADSB_Encoder.py +++ b/ADSB_Encoder.py @@ -101,8 +101,12 @@ def manyPlanes(arguments): row['latitude'] = float(row['latitude']) if not 'longitude' in row.keys(): row['longitude'] = arguments.longitude + else: + row['longitude'] = float(row['longitude']) if not 'altitude' in row.keys(): row['altitude'] = arguments.altitude + else: + row['altitude'] = float(row['altitude']) if not 'capability' in row.keys(): row['capability'] = arguments.capability if not 'typecode' in row.keys():