generate_astropy_model

eispac.core.generate_astropy_model(template)[source]

Create an Astropy fitting model using a template intended for MPFIT.

Parameters:

template (EISFitTemplate object or string) – Either a single MPFIT-style template object or a string containing the full path to a template file. The template MUST contain both ‘template’ and ‘parinfo’ attributes.

Returns:

combined_model – A fully initialized CompoundModel object with the same parameter values and constraints (including tied parameter functions) as given in the ‘parinfo’ attribute of the input template.

Return type:

CompoundModel object from Astropy.modeling