restrict

method of dascore.io.index.catalog.PatchCatalog source

restrict(
    self ,
    indices ,
    ids = None,
)-> ‘PatchCatalog’

Return a view keeping the presented rows an array selects.

indices is a boolean mask over rows or an array of integer positions (order-preserving; duplicate positions collapse to one row, matching the spool’s set semantics). ids is this view’s presented ids, for a caller which has just read them.