edges_cal.xrfi.ModelFilterInfoContainer

class edges_cal.xrfi.ModelFilterInfoContainer(models: list[edges_cal.xrfi.ModelFilterInfo] = <factory>)[source]

A container of ModelFilterInfo objects.

This is almost a perfect drop-in replacement for a singular ModelFilterInfo instance, but combines a number of them together seamlessly. This can be useful if several sub-models were fit to one long stream of data.

Methods

__init__([models])

append(model)

Create a new object by appending a set of info to the existing.

from_file(fname)

Create an object from a given file.

get_absres_model([indx])

Get the model of the absolute residuals.

get_model([indx])

Get the model values.

get_residual([indx])

Get the residual values.

write(fname)

Write the object to a file.

Attributes

data

The raw data that was filtered.

flags

The returned flags on each iteration.

n_flags_changed

The number of flags changed on each filtering iteration.

n_iters

The number of iterations of the filtering.

stds

The standard deviations at each datum for each iteration.

thresholds

The threshold at each iteration.

total_flags

The total number of flags after each iteration.

x

The data coordinates.

models