(self, seq_num)
return all([i in frags for i in range(i_last_frag)])
Check if the collection of Blocksat Packets is ready to be decoded

        Returns:
            (bool) True when ready to be decoded.
Check if the collection of Blocksat Packets is ready to be decoded
Check if the collection of Blocksat Packets is ready to be decoded
def _check_ready(self, seq_num):
        """Check if the collection of Blocksat Packets is ready to be decoded

        Returns:
            (bool) True when ready to be decoded.

        """
        # The message can only be ready when the last fragment is available:
        i_last_frag = self.frag_map[seq_num]['last_frag']
        if (i_last_frag is None):
            return False

        # Because packets can be processed out of order, check that all packets
        # before the last fragment are also available:
        frags = self.frag_map[seq_num]['frags'].keys()
        return all([i in frags for i in range(i_last_frag)])
def _check_ready ( self , seq_num ) : # The message can only be ready when the last fragment is available: i_last_frag = self . frag_map [ seq_num ] [ 'last_frag' ] if ( i_last_frag is None ) : return False # Because packets can be processed out of order, check that all packets # before the last fragment are also available: frags = self . frag_map [ seq_num ] [ 'frags' ] . keys ( ) return all ( [ i in frags for i in range ( i_last_frag ) ] )