fooof.objs.combine_fooofs

fooof.objs.combine_fooofs(fooofs)[source]

Combine a group of FOOOF and/or FOOOFGroup objects into a single FOOOFGroup object.

Parameters
fooofslist of FOOOF or FOOOFGroup

Objects to be concatenated into a FOOOFGroup.

Returns
fgFOOOFGroup

Resultant object from combining inputs.

Raises
IncompatibleSettingsError

If the input objects have incompatible settings for combining.

Examples

Combine FOOOF objects together (where fm1, fm2 & fm3 are assumed to be defined and fit):

>>> fg = combine_fooofs([fm1, fm2, f3])  # doctest:+SKIP

Combine FOOOFGroup objects together (where fg1 & fg2 are assumed to be defined and fit):

>>> fg = combine_fooofs([fg1, fg2])  # doctest:+SKIP