Python API documentation

Every module in the MagritteTorch package is documented here. This contains all the classes and functions that are available to the user. Model setup can be done using the Model class and setting all necessary variables according to the examples. The solvers module contains high-level routines for line radiative transfer computations. The plot module aids with visualizing the results of the simulations.

Main operations on a model and utilities for model setup:

Note

In the documentation of the class variables, you might see the following notation:
  • dtype: the datatype of the variable

  • dims: the dimensions of the variable, can be a list of (integers, parameter values) or None

  • unit: the astropy unit of the variable

Classes pertaining to the model data:

And then some utility functions and classes:

Note

This API documentation only includes methods and classes that are part of the public API. You are free to use any other method of any class, but be aware that these might change in future releases.