homology.PersDiag.grab

PersDiag.grab(n)[source]

clip the barcode, using only the top n entries. this is “sort-and-grab’.