ooragan.Fitter.__getitem__#

Fitter.__getitem__(index: int) FitResult[source]#
Fitter.__getitem__(index: slice) list[FitResult]

Returns the FitResult(s) with the given index (or indices).

Parameters:
indexint or slice

The index or indices (as a slice) of FitResults to get from this Fitter. If the start or stop of the slice are left empty, will return all FitResults with indices inside the given bounds. This means for returning all FitResults, use slice [:].

Returns:
FitResults or list of FitResults

If a single index is specified, a single FitResult is returned. A list otherwise.