Skip to content

Commit aa91e49

Browse files
hmperk18andrewfullardDeekshaMohantyKnights-Templarsjvshields
authored
diataxis (#3219)
* diataxis * Move docs to appropriate folders Co-authored-by: Deeksha <[email protected]> * Enhanced glossary * Fix typo that breaks codespell * Remove dead link AI added * Remove tutorial references from how-to page * More glossary adds * Reorg and rename * Index reorgs and biblio rename * Fix internal docs links and some underlinds Co-authored-by: Deeksha <[email protected]> Co-authored-by: Anirban <[email protected]> * Fixes some more docs errors * Simplify the main index * Remove automatically generated files from PR * Ignore autogenerated files * Josh's glossary updates Co-authored-by: Joshua Shields <[email protected]> * Improve analyzing TARDIS output page --------- Co-authored-by: Andrew Fullard <[email protected]> Co-authored-by: Deeksha <[email protected]> Co-authored-by: Anirban <[email protected]> Co-authored-by: Joshua Shields <[email protected]>
1 parent 4341073 commit aa91e49

File tree

107 files changed

+197
-150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+197
-150
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,6 @@ benchmarks/data/*.h5
8686
.asv/
8787
pkgs/
8888
release_hashes.txt
89+
docs/how_to_guides.rst
90+
docs/workflows.rst
91+
docs/analyzing_tardis/spectrum/tardis_example.yml

docs/analyzing_tardis/index.rst

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
1-
*******************************
2-
Analyzing TARDIS
3-
*******************************
1+
************************************
2+
Analyszing TARDIS Simulation Outputs
3+
************************************
44

5-
This section provides an overview of how to analyze the outputs generated by TARDIS.
5+
This section provides practical solutions for common analysis tasks. These guides assume you have completed simulations and want to extract scientific insights from the results.
6+
7+
Quick Reference
8+
===============
9+
10+
* :doc:`spectrum/index` - Analyzing and visualizing spectra
11+
* :doc:`visualization/index` - Creating plots and visualizations
12+
13+
Detailed Guides
14+
================
615

716
.. toctree::
817
:maxdepth: 2
9-
:hidden:
1018

11-
analyzing_tardis/spectrum/spectrum-visualization-notebook
19+
spectrum/spectrum-visualization-notebook
20+
visualization/index
21+
22+
.. note::
23+
**Need technical details?** Check the API reference for analysis modules.
1224

docs/analyzing_tardis/visualization/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ diagnostic visualizations.
1515
how_to_sdec_plot
1616
how_to_liv_plot
1717
tutorial_convergence_plot
18-
tutorial_montecarlo_packet_visualization
1918

2019

2120
TARDIS Widgets (Graphical User Interfaces)

docs/analyzing_tardis/visualization/using_widgets.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ you remember to click back on the **Box Select** option for making selections on
179179
spectrum.
180180

181181
Energy Level Diagram
182-
################
182+
####################
183183

184184
This widget lets you visualize the last line interactions
185185

@@ -202,7 +202,7 @@ with thicker lines representing more packets than the thin lines.
202202
The wavelength of the transition is given by the color.
203203

204204
Setting Other Options
205-
-----------------
205+
---------------------
206206
You can select the range on which to filter the wavelength using the slider.
207207
You can also select the model shell by which to filter the last line interactions
208208
and the level populations. If no shell is selected, then all the last line

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"python": ("http://docs.python.org/", None),
100100
"numpy": ("http://docs.scipy.org/doc/numpy/", None),
101101
"scipy": ("http://docs.scipy.org/doc/scipy/reference/", None),
102-
"matplotlib": ("http://matplotlib.sourceforge.net/", None),
102+
"matplotlib": ("http://matplotlib.org/", None),
103103
"astropy": ("http://docs.astropy.org/en/stable/", None),
104104
"h5py": ("http://docs.h5py.org/en/latest/", None),
105105
"pandas": ("http://pandas.pydata.org/pandas-docs/dev/", None),
@@ -389,7 +389,7 @@ def generate_how_to_guides_page(app):
389389
if "how_to_" in notebook.name and "checkpoint" not in notebook.name:
390390
notebooks += f"\n* :doc:`{notebook.parent}/{notebook.stem}`"
391391

392-
title = "How-To Guides\n*********\n"
392+
title = "How-To Guides\n*************\n"
393393
description = "The following pages contain the TARDIS how-to guides:"
394394

395395
with open("how_to_guides.rst", mode="wt", encoding="utf-8") as f:

docs/contributing/development/code_quality.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To run Ruff, use the following command: ::
3030
.. note :: We adopt the linting rules utilized by astropy. Permanent rules are defined in the ``pyproject.toml``, non-permanent rules are defined in the ``.ruff.toml`` file. If you want to add a new rule, please add it to the ``.ruff.toml`` file. If you want to add a permanent rule, please open a PR to the ``pyproject.toml``.
3131
3232
Pre-commit (Optional)
33-
----
33+
---------------------
3434
`Pre-commit <https://pre-commit.com/>`_ hooks are tools that help enforce quality standards by running checks on your code before you commit. If you choose to use pre-commit on your local machine, please follow these steps:
3535

3636
Install pre-commit by running: ::

docs/contributing/development/continuous_integration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ and the comparison notebook to Moria. This workflow has a separate job to indica
136136
bridge has failed.
137137

138138
The Regression Data Comparison Workflow
139-
======================================
139+
=======================================
140140

141141
The Regression Data Comparison workflow compares the regression data between the current branch and the base branch on pull requests. It only runs on pull requests and not on the master branch. The workflow generates regression data for the latest commit on the pull request and compares it with the master branch using the comparison notebook. The notebook is then uploaded as an artifact and pushed to reg-data-comp repository for previews in the bot comment.
142142

143143
.. note :: The workflow exports images from the comparison notebook and embeds them in the bot comment. Unless there are any key changes to any of the HDF files in the regression data the bot will only show two images, one containing the spectrum change and another containing relative changes in the keys. If there are any key changes, the bot will show three images, the additional one visualizing the key changes.
144144
145145
The `LFS-cache` workflow
146-
=======================
146+
========================
147147

148148
The `LFS-cache` workflow caches the regression data and atomic data and can be triggered either manually or when there is a push to the main branch of the regression data repository. This is mainly responsible for doing LFS pulls when necessary and caching objects while the `setup-lfs` action is used to restore the cached objects. Both fail if the cache is not available.

docs/contributing/development/update_regression_data.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _update regression-data:
22

3-
*************************
3+
**************************
44
Update the Regression Data
5-
*************************
5+
**************************
66

77
A special kind of tests are executed only when ``pytest`` is called alongside the ``--tardis-regression-data`` flag. These tests compare the output of the TARDIS code (mostly arrays) against the information stored in the regression data files.
88

File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Code Comparison
2-
===============
1+
How to do Code Comparison using TARDIS
2+
======================================
33

44
Several groups have started a comparison of their supernova radiative transfer
55
codes to understand systematics uncertainties and different strategies.

0 commit comments

Comments
 (0)