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:
- magrittetorch.algorithms.solvers
- magrittetorch.tools.setup
LamdaFileReadercreate_rotation_matrix()getSpeciesNumber()getSpeciesNumberList()set_Delaunay_boundary()set_Delaunay_neighbor_lists()set_boundary_condition_1D()set_boundary_condition_CMB()set_boundary_condition_zero()set_linedata_from_LAMDA_file()set_quadrature()set_rays_spherical_symmetry()set_uniform_rays()
- magrittetorch.tools.mesher
- magrittetorch.tools.plot
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:
- magrittetorch.model.model
- magrittetorch.model.image
- magrittetorch.utils.io
- magrittetorch.utils.storagetypes
- magrittetorch.model.parameters
- magrittetorch.model.geometry.geometry
- magrittetorch.model.geometry.points
- magrittetorch.model.geometry.boundary
- magrittetorch.model.geometry.rays
- magrittetorch.model.chemistry.chemistry
- magrittetorch.model.chemistry.species
- magrittetorch.model.sources.sources
- magrittetorch.model.sources.lines
- magrittetorch.model.sources.lineproducingspecies
- magrittetorch.model.sources.linedata
- magrittetorch.model.sources.collisionpartner
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.