simulate_alert¶
- lsst.alert.packet.simulate_alert(schema, keepNull=None, arrayCount=None)¶
Parse the schema and generate a compliant alert with random contents.
- Parameters:
- Returns:
- output
dict
Packet with random values corresponding to provided schema.
- output
Notes
keepNull
andarrayCount
expect schema keys without namespaces (e.g.,'diaSourceId'
, not'lsst.alert.diaSource.diaSourceId'
. This is sufficient because our schemas have unique keys but is not fully general.