Skip to content

Commit

Permalink
move constants to class
Browse files Browse the repository at this point in the history
polish docstrings
  • Loading branch information
TjarkMiener committed Feb 6, 2025
1 parent dd5f03a commit 8587449
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ The main dependencies are:

* PyTables >= 3.8
* NumPy >= 1.20.0
* ctapipe == 0.22.0
* ctapipe >= 0.23

Also see setup.py.

Expand Down
10 changes: 5 additions & 5 deletions dl1_data_handler/image_mapper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
This module defines the ``ImageMapper`` classes, which holds the basic functionality for mapping raw 1D vectors into 2D mapped images.
This module defines the ``ImageMapper`` classes that hold the basic functionality for mapping raw 1D vectors into 2D mapped images.
"""

import numpy as np
Expand All @@ -23,10 +23,6 @@
"SquareMapper",
]

# Constants for the ImageMapper classes
Constants = namedtuple("Constants", ["decimal_precision", "tick_interval_limit"])
constants = Constants(3, 0.002)

class ImageMapper(TelescopeComponent):
"""
Base component for mapping raw 1D vectors into 2D mapped images.
Expand Down Expand Up @@ -67,6 +63,10 @@ class ImageMapper(TelescopeComponent):
Transform the raw 1D vector data into the 2D mapped image.
"""

# Constants for the ImageMapper classes
Constants = namedtuple("Constants", ["decimal_precision", "tick_interval_limit"])
constants = Constants(3, 0.002)

def __init__(
self,
geometry,
Expand Down
2 changes: 1 addition & 1 deletion dl1_data_handler/reader.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
This module defines the ``DLDataReader`` and ``TableQualityQuery`` classes, which holds the basic reading and processing functionality for Deep Learning (DL) analyses.
This module defines the ``DLDataReader`` and ``TableQualityQuery`` classes that hold the basic reading and processing functionality for Deep Learning (DL) analyses.
"""

__all__ = [
Expand Down

0 comments on commit 8587449

Please sign in to comment.