Changeset 809cb16 in ammosreader
- Timestamp:
- 06/30/22 15:16:20 (3 years ago)
- Branches:
- AmmosSource, guix
- Children:
- 6d0f203
- Parents:
- d41827e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ammosreader/AbstractAmmosReader.py
rd41827e r809cb16 29 29 @property 30 30 def file_name(self): 31 """I return the name of the original file.""" 31 32 return self.__file_name 32 33 33 34 @property 34 35 def ammos_file(self): 36 """I return the file to read the data from.""" 35 37 return self.__ammos_file 36 38 37 39 @property 38 40 def container(self): 41 """I return the container which stores the data read.""" 39 42 return self.__container 40 43 41 44 @property 42 45 def tags(self): 46 """I return all the tags.""" 43 47 return self.__tags 44 48 … … 79 83 :rtype: AmmosGlobalFrameHeader 80 84 """ 81 82 85 header_size = AmmosGlobalFrameHeader.HEADER_SIZE 83 86 … … 88 91 return None 89 92 90 # FIXME: Catch exceptions and add some asserts91 93 current_global_frame_header = AmmosGlobalFrameHeader.from_bytes(bytes) 94 95 if current_global_frame_header is None: 96 return None 97 92 98 logging.info("Current global frame header %s", current_global_frame_header) 93 99 return current_global_frame_header … … 107 113 global_frame_header = self.read_next_global_frame_header() 108 114 109 # print(global_frame_header) 115 if global_frame_header is None: 116 return None 110 117 111 118 if global_frame_header is None:
Note:
See TracChangeset
for help on using the changeset viewer.