Changeset efb5900 in ammosreader for org/README.md
- Timestamp:
- 05/19/23 12:53:39 (2 years ago)
- Branches:
- AmmosSource, guix
- Children:
- 6914dbb
- Parents:
- b00fbbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
org/README.md
rb00fbbb refb5900 1 2 # Table of Contents3 4 1. [AmmosReader](#org2244bce)5 2. [Installation](#orge8b118b)6 3. [Usage](#orgcea0ee3)7 1. [audio\_reader.py](#orgae8ea86)8 2. [iqdw\_reader.py](#orge3ddc95)9 3. [pdw\_reader.py](#org59847de)10 11 12 13 <a id="org2244bce"></a>14 15 1 # AmmosReader 16 2 17 Project containing necessary File- or SocketStream-Reader to read the various datastreams of Ammos 18 19 20 <a id="orge8b118b"></a> 3 Project containing necessary File- or SocketStream-Reader to read the 4 various datastreams of Ammos 21 5 22 6 # Installation 23 7 24 git clone http://gitlab.kid.local/kidzg/ammosreader.git 25 cd ammosreader 26 python3 -m pip install . 8 ## Standard pip install (not tested on all platforms) 27 9 10 ``` shell 11 git clone http://gitlab.kid.local/kidzg/ammosreader.git 12 cd ammosreader 13 python3 -m pip install . 14 ``` 28 15 29 <a id="orgcea0ee3"></a> 16 ## Using the guix functional package manager 17 18 First subscribe to the GUIX oai channel (see Chapter Add channel to 19 system) in 20 <https://gitlab.kid.local/kidzg/guix-deployment/-/blob/master/DevOps.org>) 21 22 Then install using the guix 23 24 ``` shell 25 guix package -i python-ammosreader 26 ``` 30 27 31 28 # Usage 32 29 33 The sample\_scripts subdirectory contains multiple scripts. 30 There are two scripts, which demonstrate the usage of the ammosreader 31 package. 34 32 33 ## iqdw_reader.py 35 34 36 <a id="orgae8ea86"></a> 35 ``` shell 36 python3 iqdw_reader.py 'path_to_iqdw_file' 37 ``` 37 38 38 ## audio\_reader.py39 ## pdw_reader.py 39 40 40 python3 audio_reader.py 'path_to_ammos_file' 41 ``` shell 42 python3 pdw_reader.py 'path_to_pdw_file' 43 ``` 41 44 45 To minimize depencencies of the core package other scripts 46 (audio_reader, ammos_viewer) are now stored in separate packages. 42 47 43 <a id="orge3ddc95"></a> 48 # Logging 44 49 45 ## iqdw\_reader.py 50 If you use ammosreader in your own scripts a logger can be imported and 51 used as follows: 46 52 47 python3 iqdw_reader.py 'path_to_iqdw_file' 53 ``` python 54 from ammosreader import logger 55 logger.warning("Put your warning here") 56 ``` 48 57 49 50 <a id="org59847de"></a> 51 52 ## pdw\_reader.py 53 54 python3 pdw_reader.py 'path_to_pdw_file' 55 58 The name of the logfile is ammos.log The logger uses the directory 59 stored in the AMMOS_LOG_DIR environment variable. If this variable is 60 not set, /tmp is used as default. If the logfile is not writable, the 61 standard logger config is used and the logs go directly to console 62 (tty). (see ammos_logging.conf file in this repository)
Note:
See TracChangeset
for help on using the changeset viewer.