Package ammosreader
Expand source code
import logging
import logging.config
import os
from pathlib import Path
# FIXME: change the default log path to /var/log/ammos/ammos.log when system configuration created this dir
# with the appropriate rights
log_dir = Path(os.environ.get('AMMOS_LOG_DIR', '/tmp/'))
log_path = log_dir / 'ammos.log'
if not log_path.exists():
try:
log_path.touch()
except PermissionError:
conf_file = Path(__file__).parent / 'ammos_logging.conf'
print("Conf file", conf_file)
logging.config.fileConfig(conf_file)
else:
logging.basicConfig(filename=str(log_path), encoding='utf-8', level=logging.DEBUG)
logger = logging.getLogger(__name__)
Sub-modules
ammosreader.AbstractAmmosReader
-
I provide a base class for specialized AmmosReaders.
ammosreader.AmmosAudioDataBody
-
I provide an AMMOS data block for audio data frames.
ammosreader.AmmosAudioDataHeader
-
I provide an AMMOS data header for audio data frames.
ammosreader.AmmosAudioReader
-
I provide a specialized Ammos Reader for audio data.
ammosreader.AmmosAudioSocketReader
-
I read a Ammos datastream from a socket.
ammosreader.AmmosConstants
-
I provide several constants used in R&S software.
ammosreader.AmmosContainer
-
I provide an Ammos container.
ammosreader.AmmosExtendedAudioDataHeader
-
I provide an Ammos extended data header for audio data frames.
ammosreader.AmmosExtendedIFDataHeader
ammosreader.AmmosGlobalFrameBody
-
I provide an AMMOS global frame body.
ammosreader.AmmosGlobalFrameHeader
-
I provide an AMMOS global frame header.
ammosreader.AmmosIFDataBlock
ammosreader.AmmosIFDataBlockHeader
ammosreader.AmmosIFDataBody
-
I provide an AMMOS data body for IF data …
ammosreader.AmmosIFDataHeader
-
I provide a Ammos data header for IF data frames.
ammosreader.AmmosIFReader
-
I provide a specialized Ammos Reader for IF data.
ammosreader.AmmosSingleFrame
ammosreader.IQDWTXBlock
ammosreader.PDW
-
I store the information of a single PDW block.
ammosreader.PPDWContainer
ammosreader.PPDWReader