Skip to content

Commit

Permalink
deploy: 4e714e6
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaskontrimas committed Feb 19, 2024
0 parents commit c590dd1
Show file tree
Hide file tree
Showing 3,959 changed files with 1,208,017 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Empty file added .nojekyll
Empty file.
4 changes: 4 additions & 0 deletions 216/merge/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: d2ae8950f63c4f0767a3f0ed6efc0969
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added 216/merge/html/.doctrees/concepts/config.doctree
Binary file not shown.
Binary file not shown.
Binary file added 216/merge/html/.doctrees/concepts/dataset.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 216/merge/html/.doctrees/concepts/index.doctree
Binary file not shown.
Binary file not shown.
Binary file added 216/merge/html/.doctrees/concepts/pdf.doctree
Binary file not shown.
Binary file not shown.
Binary file added 216/merge/html/.doctrees/dev_docs/logging.doctree
Binary file not shown.
Binary file not shown.
Binary file added 216/merge/html/.doctrees/environment.pickle
Binary file not shown.
Binary file added 216/merge/html/.doctrees/examples/index.doctree
Binary file not shown.
Binary file added 216/merge/html/.doctrees/examples/timepdf.doctree
Binary file not shown.
Binary file added 216/merge/html/.doctrees/faq/index.doctree
Binary file not shown.
Binary file not shown.
Binary file added 216/merge/html/.doctrees/index.doctree
Binary file not shown.
Binary file added 216/merge/html/.doctrees/installation.doctree
Binary file not shown.
75 changes: 75 additions & 0 deletions 216/merge/html/.doctrees/nbsphinx/concepts/config.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"# Configuration"
]
},
{
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"An analysis requires a (local) configuration. Such a configuration defines for\n",
"instance the internal units used for the calculations, or defines the project's\n",
"working directory.\n",
"\n",
"The :py:mod:`skyllh.core.config` module provides the \n",
":py:class:`~skyllh.core.config.Config` class. Instatiating it create a \n",
"configuration with the default base configuration. This base configuration\n",
"can be updated using a *yaml* file via the \n",
":py:meth:`~skyllh.core.Config.from_yaml` class method or a Python dictionary\n",
"via the :py:meth:`~skyllh.core.Config.from_dict` class method. "
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"from skyllh.core.config import Config\n",
"\n",
"# Create default configuration.\n",
"cfg = Config()"
]
},
{
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"The configuration instance will be passed to the \n",
":py:class:`skyllh.core.analysis.Analysis` class and all other classes that need\n",
"access to the configuration. The ``cfg`` instance is local and could be created\n",
"several times, but should be created only once for an analysis. "
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
135 changes: 135 additions & 0 deletions 216/merge/html/.doctrees/nbsphinx/concepts/datafields.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"# Loading data fields from data files"
]
},
{
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"An analysis will need to load a set of data fields from a data file. \n",
"Which fields these are is defined in the ``['datafields']`` section of the\n",
":py:class:`~skyllh.core.config.Config` dictionary instance. Each field has a stage\n",
"assigned which states at what stage the data field is required. There are\n",
"two main stages: data preparation, and analysis. Since data fields\n",
"can exist either in an experimental data file or a monte-carlo data file, these\n",
"two main stages are divided into EXP and MC. Hence, the following stages \n",
"exist::\n",
"\n",
" DATAPREPARATION_EXP\n",
" DATAPREPARATION_MC\n",
" ANALYSIS_EXP\n",
" ANALYSIS_MC\n",
"\n",
"All stages are defines in the :py:class:`skyllh.core.datafields.DataFieldStages`\n",
"class."
]
},
{
"attachments": {},
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"After loading the data of a :py:class:`~skyllh.core.dataset.Dataset` instance, \n",
"only data fields with the stage ``ANALYSIS_EXP`` and ``ANALYSIS_MC`` will be\n",
"left to use in the analysis. Data fields marked with stage \n",
"``DATAPREPARATION_EXP`` or ``DATAPREPARATION_MC`` will be available for the data\n",
"preparation stage. "
]
},
{
"attachments": {},
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"The following code shows how to define the data fields ``my_exp_field`` and \n",
"``my_mc_field`` that should be loaded from the experimental and monte-carlo data \n",
"files, respectively."
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"from skyllh.core.config import Config\n",
"from skyllh.core.datafields import DataFieldStages as DFS"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"cfg = Config()\n",
"cfg['datafields']['my_exp_field'] = DFS.ANALYSIS_EXP\n",
"cfg['datafields']['my_mc_field'] = DFS.DATAPREPARATION_MC"
]
},
{
"attachments": {},
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"The ``my_exp_field`` will be available after the data files have been loaded\n",
"and the data has been prepared by optional data preparation functions, whereas\n",
"the ``my_mc_field`` will be available only at the data preparation stage and not\n",
"at the analysis stage.\n",
"\n",
".. note::\n",
"\n",
" Everything after the \n",
" :py:meth:`skyllh.core.dataset.Dataset.load_and_prepare_data` call is \n",
" referred to as analysis stage. \n"
]
},
{
"attachments": {},
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"Datasets can define their own required data fields via setting the \n",
":py:attr:`skyllh.core.dataset.Dataset.datafields` property in the same way as \n",
"in the configuration."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Loading

0 comments on commit c590dd1

Please sign in to comment.