Skip to content

Commit

Permalink
fix shape of trigger patch
Browse files Browse the repository at this point in the history
last dimension of sample was missing
  • Loading branch information
TjarkMiener committed Aug 6, 2024
1 parent fc55628 commit a7755a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dl1_data_handler/reader.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from collections import OrderedDict
import random
import threading
import numpy as np
import pandas as pd
import tables

from dl1_data_handler.image_mapper import ImageMapper
from dl1_data_handler.processor import DL1DataProcessor

import astropy.units as u
from astropy.coordinates import SkyCoord
Expand Down Expand Up @@ -1116,7 +1114,9 @@ def __init__(
].append({"x": patch[0], "y": patch[1]})

self.waveform_settings["shapes"][camera_type] = (
self.trigger_settings["patch_size"][camera_type]
self.trigger_settings["patch_size"][camera_type][0],
self.trigger_settings["patch_size"][camera_type][1],
self.waveform_settings["sequence_length"],
)
self.trigger_settings["patches_xpos"][camera_type] = np.unique(
[
Expand Down

0 comments on commit a7755a3

Please sign in to comment.