Bus error when running pipelines

It returns the brightest (highest flux) objects in the reference catalog: meas_astrom/matchPessimisticB.py at main · lsst/meas_astrom · GitHub

# Find the flux cut that gives us the desired number of objects.
if len(refCat) <= self.config.maxRefObjects:
    return refCat
fluxArray = refCat.get(refFluxField)
sortedFluxArray = fluxArray[fluxArray.argsort()]
minFlux = sortedFluxArray[-(self.config.maxRefObjects + 1)]

selected = (refCat.get(refFluxField) > minFlux)

outCat = afwTable.SimpleCatalog(refCat.schema)
outCat.reserve(self.config.maxRefObjects)
outCat.extend(refCat[selected])

return outCat

I wonder if MatchPessimisticBTask can be subclassed and _filterRefCat redefined to perform a different filtering.