astromodels.core.model_parser module
- class astromodels.core.model_parser.IndependentVariableParser(name, definition)[source]
Bases:
object
- class astromodels.core.model_parser.ModelParser(model_file=None, model_dict=None)[source]
Bases:
object
- class astromodels.core.model_parser.ParameterParser(name, definition)[source]
Bases:
object
- property links
- class astromodels.core.model_parser.ShapeParser(source_name)[source]
Bases:
object
- property external_functions
- property extra_setups
- property links
- class astromodels.core.model_parser.SourceParser(source_name, source_definition)[source]
Bases:
object
- property external_functions: List[Dict[str, str]]
- property extra_setups
- property links
- astromodels.core.model_parser.clone_model(model_instance)[source]
Returns a copy of the given model with all objects cloned. This is equivalent to saving the model to a file and reload it, but it doesn’t require writing or reading to/from disk. The original model is not touched.
- Parameters:
model – model to be cloned
- Returns:
a cloned copy of the given model