def METHOD_NAME(self, scores):
    ok = scores.isfinite()
    if not ok.all():
        # NaNs here can break the assignment algorithm
        scores[~ok] = scores[ok].min()
    return self.cpp.METHOD_NAME(scores), None, None