Changeset 4f0cd38 in ammosreader
- Timestamp:
- 06/29/22 13:21:41 (3 years ago)
- Branches:
- AmmosSource, guix
- Children:
- 83e6c89
- Parents:
- d7ea525
- Location:
- ammosreader
- Files:
-
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ammosreader/AmmosAudioReader.py
rd7ea525 r4f0cd38 6 6 from ammosreader.AmmosAudioDataHeader import AmmosAudioDataHeader 7 7 from ammosreader.AmmosExtendedAudioDataHeader import AmmosExtendedAudioDataHeader 8 from ammosreader.AmmosAudioDataB lock import AmmosAudioDataBlock8 from ammosreader.AmmosAudioDataBody import AmmosAudioDataBody 9 9 10 10 … … 79 79 logging.debug("Can not read all %s bytes of data body", total) 80 80 return None 81 return AmmosAudioDataB lock(byte_string, number_of_channels, number_of_samples, sample_size)81 return AmmosAudioDataBody(byte_string, number_of_channels, number_of_samples, sample_size) 82 82 83 83 def read_next_global_frame_body(self, data_header_length): -
ammosreader/AmmosGlobalFrameBody.py
rd7ea525 r4f0cd38 1 """I provide an AMMOS global frame body.""" 2 1 3 class AmmosGlobalFrameBody(): 4 """ 5 I implement an AMMOS global frame body. 2 6 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 """ 3 11 def __init__(self, data_header, data_body): 4 12 self.__data_header = data_header … … 23 31 def data_bytes_only(self): 24 32 25 byte_string = ""33 byte_string = b"" 26 34 27 35 for each_block in self.data_body:
Note:
See TracChangeset
for help on using the changeset viewer.