Skip to content

Commit

Permalink
deploy: 4bfdc24
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaskontrimas committed Apr 24, 2024
0 parents commit 6336234
Show file tree
Hide file tree
Showing 3,959 changed files with 1,208,035 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 black/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: 0c9a5ea918a377b7fad2c04adc456c56
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added black/html/.doctrees/concepts/detsigyield.doctree
Binary file not shown.
Binary file not shown.
Binary file added black/html/.doctrees/concepts/index.doctree
Binary file not shown.
Binary file added black/html/.doctrees/concepts/parameters.doctree
Binary file not shown.
Binary file added black/html/.doctrees/concepts/pdf.doctree
Binary file not shown.
Binary file not shown.
Binary file added black/html/.doctrees/dev_docs/logging.doctree
Binary file not shown.
Binary file added black/html/.doctrees/environment.pickle
Binary file not shown.
Binary file added black/html/.doctrees/examples/index.doctree
Binary file not shown.
Binary file added black/html/.doctrees/examples/timepdf.doctree
Binary file not shown.
Binary file added black/html/.doctrees/index.doctree
Binary file not shown.
Binary file added black/html/.doctrees/installation.doctree
Binary file not shown.
94 changes: 94 additions & 0 deletions black/html/.doctrees/nbsphinx/concepts/detsigyield.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "12151349",
"metadata": {},
"source": [
"# Detector Signal Yield"
]
},
{
"cell_type": "markdown",
"id": "69d138fc",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"Several parts of an analysis will require the calculation of the detector signal yield, which is the mean number of expected signal events in the detector for a given source hypothesis, i.e. source flux function $\\Phi(\\alpha,\\delta,E,t)$."
]
},
{
"cell_type": "raw",
"id": "a1560531",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"SkyLLH provides two abstract base classes for creating a detector signal yield instance, :py:class:`~skyllh.core.detsigyield.DetSigYieldBuilder` and :py:class:`~skyllh.core.detsigyield.DetSigYield`. The first is the builder class, which will build a :py:class:`~skyllh.core.detsigyield.DetSigYield` class instance."
]
},
{
"cell_type": "raw",
"id": "3b4bd127",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"The builder class has the abstract method :py:meth:`~skyllh.core.detsigyield.DetSigYieldBuilder.construct_detsigyield`, which will take a :py:class:`~skyllh.core.dataset.Dataset`, :py:class:`~skyllh.core.dataset.DatasetData`, :py:class:`~skyllh.physics.flux_model.FluxModel` instance, and live-time to construct a :py:class:`~skyllh.core.detsigyield.DetSigYield` class instance, which will provide an evaluation method to calculate the detector signal yield for a given source, for the given dataset. Hence, the detector signal yield is dataset and source model dependent."
]
},
{
"cell_type": "raw",
"id": "653d0c06",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"The :py:class:`~skyllh.core.detsigyield.DetSigYield` class has two abstract methods, :py:meth:`~skyllh.core.detsigyield.DetSigYield.source_to_array` and :py:meth:`~skyllh.core.detsigyield.DetSigYield.__call__`."
]
},
{
"cell_type": "raw",
"id": "60c16a6d",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"The :py:meth:`~skyllh.core.detsigyield.DetSigYield.source_to_array` method takes a sequence of source models and converts it into a numpy record array suitable for the :py:meth:`~skyllh.core.detsigyield.DetSigYield.__call__` method to evaluate the detector signal yield efficiently for a list of sources. The :py:meth:`~skyllh.core.detsigyield.DetSigYield.__call__` method evaluates the :py:class:`~skyllh.core.detsigyield.DetSigYield` instance. As arguments it takes the source record array created by the :py:meth:`~skyllh.core.detsigyield.DetSigYield.source_to_array` method, and the numpy record array holding the (local) source parameter values."
]
},
{
"cell_type": "raw",
"id": "d75df35f",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"The record array holding the local source parameter values can be generated through the :py:class:`~skyllh.core.parameters.ParameterModelMapper.create_src_params_recarray` of the :py:class:`~skyllh.core.parameters.ParameterModelMapper` instance of the analysis. See also the :ref:`Parameter to Model mapping <sec:ParameterToModelMapping>` section."
]
}
],
"metadata": {
"celltoolbar": "Raw Cell Format",
"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.8.10"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading

0 comments on commit 6336234

Please sign in to comment.