distroi.model.model module#

A module defining the functionalities of a full model.

Defines the implementation of a model, from which observables for matching to observational data can be calculated.

class distroi.model.model.Model#

Bases: object

Defines a model consisting of a single radiative transfer component and possible additional geometric components.

components#

Dictionary containing the names of model components within the Model scope and the corresponding component objects.

Type:

dict of str to RTComp or GeomComp

params#

Dictionary containing the names of model parameters within the Model scope and the corresponding parameter objects.

Type:

dict of str to Param

add_components(comp: RTComp | GeomComp | list[RTComp | GeomComp], names: list[str] | None = None) None#

Add a component or list of components to the model. The parameters of the component will be named accordingly in the components dict. If no names are specified, sensible defaults will be chosen.

Parameters:
  • comp (RTComp or GeomComp or list of RTComp or GeomComp) – The component or list of components to be added to the model.

  • names (list of str, optional) – The names to be assigned to the components. If not specified, sensible defaults will be chosen.