Changeset b00fbbb in ammosreader for org


Ignore:
Timestamp:
05/19/23 12:33:29 (2 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource, guix
Children:
efb5900
Parents:
dff8988
Message:

README.org updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • org/README.org

    rdff8988 rb00fbbb  
    77* Installation
    88
     9** Standard pip install (not tested on all platforms)
     10
    911#+BEGIN_SRC shell
    1012git clone http://gitlab.kid.local/kidzg/ammosreader.git
     
    1315#+END_SRC
    1416
     17** Using the guix functional package manager
     18
     19First subscribe to the GUIX oai channel (see Chapter Add channel to system) in
     20https://gitlab.kid.local/kidzg/guix-deployment/-/blob/master/DevOps.org)
     21
     22Then install using the guix
     23
     24#+BEGIN_SRC shell
     25guix package -i python-ammosreader
     26#+END_SRC
     27
    1528* Usage
    1629
    17 The sample_scripts subdirectory contains multiple scripts.
    18 
    19 ** audio_reader.py
    20 
    21 #+BEGIN_SRC shell
    22 python3 audio_reader.py 'path_to_ammos_file'
    23 #+END_SRC
     30There are two scripts, which demonstrate the usage of the ammosreader package.
    2431
    2532** iqdw_reader.py
     
    3441python3 pdw_reader.py 'path_to_pdw_file'
    3542#+END_SRC
     43
     44To minimize depencencies of the core package other scripts (audio_reader, ammos_viewer)
     45are now stored in separate packages.
     46
     47* Logging
     48
     49If you use ammosreader in your own scripts a logger can be imported and used as follows:
     50
     51#+BEGIN_SRC python
     52from ammosreader import logger
     53logger.warning("Put your warning here")
     54#+END_SRC
     55
     56The name of the logfile is ammos.log
     57The logger uses the directory stored in the AMMOS_LOG_DIR environment variable.
     58If this variable is not set, /tmp is used as default.
     59If the logfile is not writable, the standard logger config is used and
     60the logs go directly to console (tty).
     61(see ammos_logging.conf file in this repository)
Note: See TracChangeset for help on using the changeset viewer.