gftool.pade.apply_filter

gftool.pade.apply_filter(*filters, validity_iter)[source]

Handle usage of filters for Pade.

Parameters
filterscallable

Functions to determine which continuations to keep.

validity_iteriterable of (…, N_z) complex np.ndarray

The iterable of analytic continuations as generated by calc_iterator.

Returns
is_valid(…) bool np.ndarray

Array to index which continuations are good.