Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gammaray packet initialization documentation #2822

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,10 @@ jobs:
bash
create-args: >-
python
asv
asv=0.6.4
mamba

- name: Install asv
run: pip install asv
conda-build
conda

- name: Accept all asv questions
run: asv machine --yes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Get current date
run: echo "DATE=$(date +'%Y.%m.%d')" >> $GITHUB_ENV

- uses: peter-evans/create-pull-request@v4
- uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.BOT_TOKEN }}
committer: TARDIS Bot <[email protected]>
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
python-version: "3.x"

- name: Install setuptools_scm
run: pip install 'setuptools_scm<7'
run: pip install "setuptools_scm<7" git-cliff==2.6.1

- name: Show current version
run: python .ci-helpers/get_current_version.py
Expand All @@ -38,6 +38,13 @@ jobs:
python .ci-helpers/get_next_version.py
echo "NEW_TAG=$(python .ci-helpers/get_next_version.py)" >> $GITHUB_ENV

- name: Generate and process changelog
run: |
CHANGELOG=$(git cliff --config pyproject.toml --unreleased | sed -n '/^## Changelog/,$p' | grep -vE '^(ERROR|WARN)')
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
echo "$CHANGELOG" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV

- name: Create new release
uses: softprops/action-gh-release@v1
with:
Expand All @@ -47,9 +54,12 @@ jobs:
prerelease: false
body: |
This release has been created automatically by the TARDIS continuous delivery pipeline.


${{ env.CHANGELOG }}

A complete list of changes for this release is available at [CHANGELOG.md](https://github.com/tardis-sn/tardis/blob/master/CHANGELOG.md).
files: |
conda-osx-arm64.lock
conda-linux-64.lock
conda-osx-64.lock
conda-lock.yml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ name: tests
on:
push:
branches:
- "*"
- master
pull_request:
branches:
- "*"
- master
types:
- opened
- reopened
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing/tools/benchmark.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"metadata": {},
"outputs": [],
"source": [
"from tardis.io.atom_data.util import download_atom_data\n",
"from tardis.io.atom_data import download_atom_data\n",
"\n",
"download_atom_data('kurucz_cd23_chianti_H_He')"
]
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing/tools/profiling/profiling_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"%load_ext snakeviz\n",
"\n",
"from tardis import run_tardis\n",
"from tardis.io.atom_data.util import download_atom_data\n",
"from tardis.io.atom_data import download_atom_data\n",
"download_atom_data('kurucz_cd23_chianti_H_He')"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"from tardis.io.atom_data.base import AtomData\n",
"from tardis.simulation import Simulation\n",
"from tardis import run_tardis\n",
"from tardis.io.atom_data.util import download_atom_data\n",
"from tardis.io.atom_data import download_atom_data\n",
"download_atom_data('kurucz_cd23_chianti_H_He')\n",
"\n",
"import time\n",
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Mission Statement
physics/montecarlo/index
physics/update_and_conv/update_and_conv
physics/spectrum/index
physics/tardisgamma/index


.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion docs/io/grid/how_to_TardisGridTutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"source": [
"import pandas as pd\n",
"import numpy as np\n",
"from tardis.io.atom_data.util import download_atom_data\n",
"from tardis.io.atom_data import download_atom_data\n",
"from tardis.io.atom_data import AtomData\n",
"\n",
"import tardis.grid as grid"
Expand Down
2 changes: 1 addition & 1 deletion docs/io/optional/tutorial_callback_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"warnings.filterwarnings('ignore')\n",
"\n",
"from tardis import run_tardis\n",
"from tardis.io.atom_data.util import download_atom_data\n",
"from tardis.io.atom_data import download_atom_data\n",
"\n",
"# We download the atomic data needed to run the simulation\n",
"download_atom_data('kurucz_cd23_chianti_H_He')\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/io/optional/tutorial_logging_configuration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"outputs": [],
"source": [
"from tardis import run_tardis\n",
"from tardis.io.atom_data.util import download_atom_data"
"from tardis.io.atom_data import download_atom_data"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/io/output/how_to_physical_quantities.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"outputs": [],
"source": [
"# Download the atomic data\n",
"from tardis.io.atom_data.util import download_atom_data\n",
"from tardis.io.atom_data import download_atom_data\n",
"download_atom_data('kurucz_cd23_chianti_H_He')\n",
"\n",
"# Download the example configuration file\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/io/output/how_to_plasma_graph.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"source": [
"#downloading necessary modules\n",
"from tardis import run_tardis\n",
"from tardis.io.atom_data.util import download_atom_data\n",
"from tardis.io.atom_data import download_atom_data\n",
"\n",
"import networkx as nx\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/io/output/how_to_rpacket_tracking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
"outputs": [],
"source": [
"from tardis import run_tardis\n",
"from tardis.io.atom_data.util import download_atom_data"
"from tardis.io.atom_data import download_atom_data"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/io/output/how_to_to_hdf.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"outputs": [],
"source": [
"from tardis import run_tardis\n",
"from tardis.io.atom_data.util import download_atom_data\n",
"from tardis.io.atom_data import download_atom_data\n",
"\n",
"# We download the atomic data needed to run the simulation\n",
"download_atom_data('kurucz_cd23_chianti_H_He')\n",
Expand Down
Loading
Loading