def get_objects(self, data=None, size=1024):
        """ Get sentences but return list of NMEA objects
        """
        str_data = self._read(data=data, size=size)
        nmea_objects = []
        for nmea_str in str_data:
            try:
                nmea_ob = self._get_type(nmea_str)()
            except __HOLE__:
                # NMEA sentence was not recognised
                continue
            nmea_ob.parse(nmea_str)
            nmea_objects.append(nmea_ob)

        return nmea_objects
dataset/ETHPy150Open FishPi/FishPi-POCV---Command---Control/external/pynmea/streamer.py/NMEAStream.get_objects