Changeset 9af0638 for src/common/bin


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

Location:
src/common/bin
Files:
2 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               
  • src/common/bin/gnuboat-log-converter

    r75f09e4 r9af0638  
    22# -*- coding: utf-8 -*-
    33'''
    4     Copyright (C) 2016 - 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
     4    Copyright (C) 2016 - 2020 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
    55
    66    This program is free software: you can redistribute it and/or modify
    … …  
    2727import subprocess
    2828
    29 from gnuboat.datahandler import loghandler, logdataset
     29from gnuboat_common.datahandler import loghandler, logdataset
    3030
    3131class Format(Enum):
    … …  
    5858    csv_callback = CsvCallback(output_file_csv)
    5959    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()))
    6163    output_file.close()
    6264
Note: See TracChangeset for help on using the changeset viewer.