Skip to content

Commit d3eed69

Browse files
committed
fix issue 171 that prevented to choose output shape of interpolated images
1 parent 0b61f99 commit d3eed69

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

dl1_data_handler/image_mapper.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from collections import Counter, namedtuple
99

1010
from ctapipe.instrument.camera import PixelShape
11-
from ctapipe.core import TelescopeComponent
11+
from ctapipe.core import Component
1212
from ctapipe.core.traits import Bool, Int
1313

1414
__all__ = [
@@ -23,7 +23,7 @@
2323
"SquareMapper",
2424
]
2525

26-
class ImageMapper(TelescopeComponent):
26+
class ImageMapper(Component):
2727
"""
2828
Base component for mapping raw 1D vectors into 2D mapped images.
2929
@@ -86,6 +86,12 @@ def __init__(
8686
this is mutually exclusive with passing ``config``
8787
"""
8888

89+
super().__init__(
90+
config=config,
91+
parent=parent,
92+
**kwargs,
93+
)
94+
8995
# Camera types
9096
self.geometry = geometry
9197
self.camera_type = self.geometry.name

0 commit comments

Comments
 (0)