Skip to content

Commit

Permalink
Include interpolation in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Sep 10, 2024
1 parent 7532b6e commit 282e850
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/api-reference/monitoring/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Submodules

.. toctree::
:maxdepth: 1
:glob:

aggregator
interpolation
outlier


Expand Down
11 changes: 11 additions & 0 deletions docs/api-reference/monitoring/interpolation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _monitoring_interpolation:

*************
Interpolation
*************


Reference/API
=============

.. automodapi:: ctapipe.monitoring.interpolation
7 changes: 0 additions & 7 deletions src/ctapipe/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@

from .datawriter import DATA_MODEL_VERSION, DataWriter

from .interpolation import (
Interpolator,
PointingInterpolator,
)

__all__ = [
"HDF5TableWriter",
"HDF5TableReader",
Expand All @@ -40,6 +35,4 @@
"DataWriter",
"DATA_MODEL_VERSION",
"get_hdf5_datalevels",
"Interpolator",
"PointingInterpolator",
]
8 changes: 7 additions & 1 deletion src/ctapipe/monitoring/interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@

from ctapipe.core import Component, traits

from .astropy_helpers import read_table
__all__ = [
"Interpolator",
"PointingInterpolator",
]


class Interpolator(Component, metaclass=ABCMeta):
Expand Down Expand Up @@ -103,6 +106,9 @@ def _check_interpolators(self, tel_id):
raise KeyError(f"No table available for tel_id {tel_id}")

def _read_parameter_table(self, tel_id):
# prevent circular import between io and monitoring
from ..io import read_table

input_table = read_table(
self.h5file,
f"{self.telescope_data_group}/tel_{tel_id:03d}",
Expand Down

0 comments on commit 282e850

Please sign in to comment.