uvex_transients.simulation.logical_ops.difference#
- uvex_transients.simulation.logical_ops.difference(catalogs: list[EventCatalog]) EventCatalog[source]#
Restrict catalogs[0] to events (by
event_id) not present in catalogs[1].- Parameters:
catalogs (
listofEventCatalog) – Exactly two catalogs,[a, b]; the result isaminusb(unlike union/intersection, this is order-sensitive, so no n-ary form is offered).- Returns:
A new catalog over catalogs[0]’s rows whose
event_iddoes not appear in catalogs[1].- Return type:
EventCatalog- Raises:
ValueError – If catalogs doesn’t have exactly two entries, they disagree on nside/order, or both carry
pre_cut_countsand those disagree.