Changeset 9af0638 for src/common/bin
- Timestamp:
- Feb 2, 2020, 5:30:22 PM (7 years ago)
- Branches:
- debian/bullseye, master
- Children:
- ec9e811
- Parents:
- 75f09e4
- git-author:
- Joachim Langenbach <joachim.langenbach@…> (02/02/20 12:49:19)
- git-committer:
- Joachim Langenbach <joachim.langenbach@…> (02/02/20 17:30:22)
- Location:
- src/common/bin
- Files:
-
- 2 moved
-
gnuboat-log-analyser (moved) (moved from src/gnuboat/bin/gnuboat-log-analyser ) (3 diffs)
-
gnuboat-log-converter (moved) (moved from src/gnuboat/bin/gnuboat-log-converter ) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/common/bin/gnuboat-log-analyser
r75f09e4 r9af0638 2 2 # -*- coding: utf-8 -*- 3 3 ''' 4 Copyright (C) 2018 - 20 19EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.4 Copyright (C) 2018 - 2020 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved. 5 5 6 6 This program is free software: you can redistribute it and/or modify … … 31 31 import shutil 32 32 33 from gnuboat .datahandler import loghandler, logdataset33 from gnuboat_common.datahandler import loghandler, logdataset 34 34 35 35 # -999 is a workaround, as long gdal python api does not handle addAlpha … … 162 162 # parse, correct and append log file 163 163 csv_callback.stage_set(stage) 164 if not log_handler.gnuboat_read(log_file_path, csv_callback.callback): 164 result = log_handler.gnuboat_read_file(log_file_path, csv_callback.callback) 165 if result.messages(): 166 print('\n'.join(result.errors())) 167 if not result.success(): 165 168 sys.exit(5) 166 169 -
src/common/bin/gnuboat-log-converter
r75f09e4 r9af0638 2 2 # -*- coding: utf-8 -*- 3 3 ''' 4 Copyright (C) 2016 - 20 17EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.4 Copyright (C) 2016 - 2020 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved. 5 5 6 6 This program is free software: you can redistribute it and/or modify … … 27 27 import subprocess 28 28 29 from gnuboat .datahandler import loghandler, logdataset29 from gnuboat_common.datahandler import loghandler, logdataset 30 30 31 31 class Format(Enum): … … 58 58 csv_callback = CsvCallback(output_file_csv) 59 59 log_handler = loghandler.LogHandler() 60 log_handler.gnuboat_read(input_file_path, csv_callback.callback, checksums_fix, errors_ignore) 60 result = log_handler.gnuboat_read_file(input_file_path, csv_callback.callback, checksums_fix, errors_ignore) 61 if result.messages(): 62 print('\n'.join(result.errors())) 61 63 output_file.close() 62 64
Note:
See TracChangeset
for help on using the changeset viewer.
