Changeset 23fa354 for src/python/bin/gnuboat-log-converter
- Timestamp:
- Sep 22, 2017, 8:17:29 AM (9 years ago)
- Branches:
- 0.5, debian/bullseye, debian/jessie, master
- Children:
- 873002d
- Parents:
- 9773514
- git-author:
- Joachim Langenbach <joachim.langenbach@…> (09/21/17 19:32:01)
- git-committer:
- Joachim Langenbach <joachim.langenbach@…> (09/22/17 08:17:29)
- File:
-
- 1 edited
-
src/python/bin/gnuboat-log-converter (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/python/bin/gnuboat-log-converter
r9773514 r23fa354 43 43 return int(string) 44 44 except ValueError as error: 45 print('INFO: Failed to convert value from line %s into numeric: {:s}\n Message: {:s}'.format(current_row, string, error))45 print('INFO: Failed to convert value from line {} into numeric: {}\n Message: {}'.format(current_row, string, error)) 46 46 return 0 47 47 … … 54 54 matches = regex_nmea_position.match(nmea_value) 55 55 if matches is None: 56 print('INFO: Failed to convert position value from line { :s} into decimal degrees: {:s}'.format(current_row, nmea_value))56 print('INFO: Failed to convert position value from line {} into decimal degrees: {}'.format(current_row, nmea_value)) 57 57 return 58 58 decimalDegrees = toFloat(matches.group(1), current_row) … … 109 109 'water_depth': None, 110 110 'water_temperature': None} 111 elif nmea_sentence.sentence_type == 'D BT' and last_row is not None:112 last_row['water_depth'] = toFloat(nmea_sentence.depth _meters, current_row)111 elif nmea_sentence.sentence_type == 'DPT' and last_row is not None: 112 last_row['water_depth'] = toFloat(nmea_sentence.depth, current_row) 113 113 elif nmea_sentence.sentence_type == 'MTW' and last_row is not None: 114 114 last_row['water_temperature'] = toFloat(nmea_sentence.temperature, current_row)
Note:
See TracChangeset
for help on using the changeset viewer.
