Changeset 4f0cd38 in ammosreader


Ignore:
Timestamp:
06/29/22 13:21:41 (3 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource, guix
Children:
83e6c89
Parents:
d7ea525
Message:

DataBlocks removed because GlobalDataFrameBody is used therefore

Location:
ammosreader
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • ammosreader/AmmosAudioReader.py

    rd7ea525 r4f0cd38  
    66from ammosreader.AmmosAudioDataHeader import AmmosAudioDataHeader
    77from ammosreader.AmmosExtendedAudioDataHeader import AmmosExtendedAudioDataHeader
    8 from ammosreader.AmmosAudioDataBlock import AmmosAudioDataBlock
     8from ammosreader.AmmosAudioDataBody import AmmosAudioDataBody
    99
    1010
     
    7979            logging.debug("Can not read all %s bytes of data body", total)
    8080            return None
    81         return AmmosAudioDataBlock(byte_string, number_of_channels, number_of_samples, sample_size)
     81        return AmmosAudioDataBody(byte_string, number_of_channels, number_of_samples, sample_size)
    8282
    8383    def read_next_global_frame_body(self, data_header_length):
  • ammosreader/AmmosGlobalFrameBody.py

    rd7ea525 r4f0cd38  
     1"""I provide an AMMOS global frame body."""
     2
    13class AmmosGlobalFrameBody():
     4    """
     5    I implement an AMMOS global frame body.
    26
     7    AMMOS frames can store data of various types.
     8    The data is described in the data header.
     9    The raw data is then stored in the data body.
     10    """
    311    def __init__(self, data_header, data_body):
    412        self.__data_header = data_header
     
    2331    def data_bytes_only(self):
    2432
    25         byte_string = ""
     33        byte_string = b""
    2634
    2735        for each_block in self.data_body:
Note: See TracChangeset for help on using the changeset viewer.