retrieve_alerts¶
- lsst.alert.packet.retrieve_alerts(fp, reader_schema=None)¶
- Read alert packets from the given I/O stream. - Parameters:
- Returns:
- schemalsst.alert.Schema
- The schema with which alerts were written (which may be different from the schema being used for deserialization). 
- recordsiterable of dict
- Alert records. 
 
- schema
- Raises:
- RuntimeError
- Raised if alert data could not be read.