Ignore:
Timestamp:
Feb 2, 2020, 5:30:22 PM (7 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
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)
Message:

Created new python gnuboat_common package, with functions used by gnuboat and mapservice

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/common/bin/gnuboat-log-analyser

    r75f09e4 r9af0638  
    22# -*- coding: utf-8 -*-
    33'''
    4     Copyright (C) 2018 - 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
     4    Copyright (C) 2018 - 2020 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
    55
    66    This program is free software: you can redistribute it and/or modify
    … …  
    3131import shutil
    3232
    33 from gnuboat.datahandler import loghandler, logdataset
     33from gnuboat_common.datahandler import loghandler, logdataset
    3434
    3535# -999 is a workaround, as long gdal python api does not handle addAlpha
    … …  
    162162                # parse, correct and append log file
    163163                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():
    165168                        sys.exit(5)
    166169               
Note: See TracChangeset for help on using the changeset viewer.