specparam.objs.combine_model_objs

specparam.objs.combine_model_objs(model_objs)[source]

Combine a group of model objects into a single group model object.

Parameters:
model_objslist of SpectralModel or SpectralGroupModel

Objects to be concatenated into a group model object.

Returns:
groupSpectralGroupModel

Resultant object from combining inputs.

Raises:
IncompatibleSettingsError

If the input objects have incompatible settings for combining.

Examples

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

>>> group = combine_model_objs([fm1, fm2, fm3])  

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

>>> group = combine_model_objs([fg1, fg2])  

Examples using specparam.objs.combine_model_objs

Fitting Power Spectrum Models Across 3D Arrays

Fitting Power Spectrum Models Across 3D Arrays

Manipulating Objects

Manipulating Objects