{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "### Quickstart for TARDIS ###" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Every simulation run requires the atomic database (for more info refer to [atomic data](io/configuration/components/atomic/atomic_data.rst)) and a configuration file (more info at [configuration](io/configuration/index.rst)).\n", "You can obtain a copy of the atomic database from the\n", "(https://github.com/tardis-sn/tardis-refdata) repository\n", "(`atom_data` subfolder). We recommended to use the\n", "`kurucz_cd23_chianti_H_He.h5` dataset (which is auto-downloaded in the second cell already). The configuration file for this quickstart is `tardis_example.yml`, which can be downloaded [here](https://raw.githubusercontent.com/tardis-sn/tardis/master/docs/tardis_example.yml)), though this file is auto-downloaded in the third cell.\n", "\n", "After the [installation](installation.rst), start a Jupyter server executing `jupyter notebook` on the command line in a directory that contains this quickstart." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from tardis import run_tardis\n", "from tardis.io.atom_data.util import download_atom_data" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Downloading the atomic data ####" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# The data are automatically downloaded\n", "download_atom_data('kurucz_cd23_chianti_H_He')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Downloading the example file ####" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "!curl -O https://raw.githubusercontent.com/tardis-sn/tardis/master/docs/tardis_example.yml" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Running the simulation (long output) ####" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "