forked from tardis-sn/tardis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docstrings to subpackages (tardis-sn#2204)
* add docstring to subpackage grid * Add docstrings to subpackages * Change comments to docstrings * add docstrings to subpackages * rename gui/__init__.py * Reformat using black * add contributor infos to mailmap file * add extended summary to docstrings * Add extended summary to plasma/properties * Update tardis/io/parsers/__init__.py Co-authored-by: Sona Chitchyan <[email protected]> --------- Co-authored-by: kim <[email protected]> Co-authored-by: Sona Chitchyan <[email protected]>
- Loading branch information
1 parent
9ea964d
commit db2c635
Showing
23 changed files
with
110 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -230,3 +230,8 @@ Youssef Eweis <[email protected]> Youssef Eweis <[email protected] | |
Rohith Varma Buddaraju <[email protected]> | ||
Rohith Varma Buddaraju <[email protected]> rohithvarma3000 <[email protected]> | ||
Rohith Varma Buddaraju <[email protected]> Rohith <[email protected]> | ||
|
||
Le Truong <[email protected]> | ||
|
||
Kim Lingemann <[email protected]> kimsina <[email protected]> | ||
Kim Lingemann <[email protected]> kim <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# codes to for analyse the model. | ||
""" | ||
Code to analyse the model. | ||
""" | ||
|
||
import re | ||
import os | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
""" | ||
Storing a grid of TARDIS parameters that | ||
facilitates running large numbers of | ||
simulations easily. | ||
""" | ||
|
||
from tardis.grid.base import * |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
""" | ||
Creation of the basic framework for the TARDIS GUI. | ||
The data that should be displayed in the GUI is put into | ||
respective data structures (either a tree or a table), such | ||
that they can be used in the widgets. These widgets are | ||
used to form the building blocks of the basic framework for | ||
the GUI. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
""" | ||
Getting and handling the atomic data. | ||
""" | ||
|
||
from tardis.io.atom_data.base import AtomData | ||
from tardis.io.atom_data.atom_web_download import download_atom_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
""" | ||
Managing the logging output. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
""" | ||
Holding information about the TARDIS model. | ||
This includes information about the shell structure, | ||
density, abundance, temperatures and dilution | ||
factor of the model used in the simulation. | ||
""" | ||
|
||
from tardis.model.base import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
""" | ||
Holding information about model geometry for radial 1D models. | ||
The information stored about the model are the following attributes: | ||
r_inner : The radius of the inner shell boundaries | ||
r_outer : The radius of the outer shell boundaries | ||
v_inner : The velocity of the inner boundaries of each shell | ||
v_outer : The velocity of the outer boundaries of each shell | ||
volume : Volume of each shell computed from r_outer and r_inner | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
""" | ||
Faciliating the MonteCarlo iterations. | ||
During a simulation run, a number of MonteCarlo iterations specified | ||
in the configuration are run using the numba compiler. | ||
Most of the iterations are used to calculate the steady-state plasma | ||
properties and with the last iteration, the spectrum is determined. | ||
""" | ||
|
||
from tardis.montecarlo.base import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
""" | ||
Dealing with plasma properties and calculations related to it. | ||
""" | ||
|
||
from tardis.plasma.base import BasePlasma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
|
||
""" | ||
Calculating transition probabilities for macro_atom interactions. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
""" | ||
Translate cmfgen format to a format TARDIS can use. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
""" | ||
Handling simulation runs. | ||
""" | ||
|
||
from tardis.simulation.base import Simulation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
|
||
""" | ||
Providing Poisson statistics that govern the MonteCarlo processes. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
|
||
""" | ||
Handling the packet propagation. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
|
||
""" | ||
Calculating distances. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# Utilities for TARDIS | ||
""" | ||
Utilities for TARDIS. | ||
""" |