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 store the content of an R&S Ammos file in a more accessible way.
ammosreader.AmmosExtendedAudioDataHeader-
I provide an Ammos extended data header for audio data frames.
ammosreader.AmmosExtendedIFDataHeaderammosreader.AmmosGlobalFrameBody-
I provide an AMMOS global frame body.
ammosreader.AmmosGlobalFrameHeader-
I provide an AMMOS global frame header.
ammosreader.AmmosIFDataBlockammosreader.AmmosIFDataBlockHeaderammosreader.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.AmmosSingleFrameammosreader.IQDWTXBlockammosreader.PDW-
I store the information of a single PDW block.
ammosreader.PPDWContainerammosreader.PPDWReader