Skip to content

Commit 72afd7a

Browse files
committed
unmaped wf
1 parent 4ad3206 commit 72afd7a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

dl1_data_handler/reader.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,7 +1722,7 @@ class DLRawTriggerReader(DLWaveformReader):
17221722
default_value = False,
17231723
allow_none = False,
17241724
help=("Boolean variable to get the unmaped waveform")
1725-
)
1725+
).tag(config=True)
17261726

17271727
trigger_settings = Dict(
17281728
default_value = None,
@@ -1759,11 +1759,13 @@ def __init__(
17591759
self.sequence_length,
17601760
)
17611761
if "waveform" in self.output_settings and self.hexagonal_convolution==True:
1762-
neighbor_matrix = self.image_mappers[camera_type].geometry.neighbor_matrix
1762+
neighbor_matrix = self.image_mappers[self.cam_name].geometry.neighbor_matrix
17631763
self.neighbor_dict = {}
17641764
for i in range(neighbor_matrix.shape[0]):
17651765
neighbors = np.where(neighbor_matrix[i])[0]
17661766
self.neighbor_dict[i] = neighbors.tolist()
1767+
else:
1768+
self.neighbor_dict = None
17671769

17681770

17691771
self.input_shape = (neighbor_matrix.shape[0], self.sequence_length)

0 commit comments

Comments
 (0)