Changeset 809cb16 in ammosreader


Ignore:
Timestamp:
06/30/22 15:16:20 (3 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource, guix
Children:
6d0f203
Parents:
d41827e
Message:

more documentation added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ammosreader/AbstractAmmosReader.py

    rd41827e r809cb16  
    2929    @property
    3030    def file_name(self):
     31        """I return the name of the original file."""
    3132        return self.__file_name
    3233
    3334    @property
    3435    def ammos_file(self):
     36        """I return the file to read the data from."""
    3537        return self.__ammos_file
    3638
    3739    @property
    3840    def container(self):
     41        """I return the container which stores the data read."""
    3942        return self.__container
    4043
    4144    @property
    4245    def tags(self):
     46        """I return all the tags."""
    4347        return self.__tags
    4448
     
    7983        :rtype: AmmosGlobalFrameHeader
    8084        """
    81 
    8285        header_size = AmmosGlobalFrameHeader.HEADER_SIZE
    8386
     
    8891            return None
    8992
    90         # FIXME: Catch exceptions and add some asserts
    9193        current_global_frame_header = AmmosGlobalFrameHeader.from_bytes(bytes)
     94
     95        if current_global_frame_header is None:
     96            return None
     97
    9298        logging.info("Current global frame header %s", current_global_frame_header)
    9399        return current_global_frame_header
     
    107113        global_frame_header = self.read_next_global_frame_header()
    108114
    109         # print(global_frame_header)
     115        if global_frame_header is None:
     116            return None
    110117
    111118        if global_frame_header is None:
Note: See TracChangeset for help on using the changeset viewer.