From c65ac4e1f73b595ebf4f190eec6fd09febca9974 Mon Sep 17 00:00:00 2001 From: cfuselli Date: Tue, 12 Dec 2023 14:03:40 +0100 Subject: [PATCH] fix indent --- amstrax/plugins/raw_records/daqreader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amstrax/plugins/raw_records/daqreader.py b/amstrax/plugins/raw_records/daqreader.py index 3476c095..2acf8609 100644 --- a/amstrax/plugins/raw_records/daqreader.py +++ b/amstrax/plugins/raw_records/daqreader.py @@ -359,7 +359,7 @@ def compute(self, chunk_i): # Convert to strax chunks result = dict() for i, subd in enumerate(channel_ranges): - + if len(result_arrays[i]): # dt may differ per subdetector dt = result_arrays[i]['dt'][0] @@ -403,8 +403,8 @@ def split_channel_ranges(records, channel_ranges): which_detector[r_i] = d_i n_in_detector[d_i] += 1 break - else: - raise ValueError(f"Bad data from DAQ: data in unknown channel {r['channel']}") + else: + raise ValueError(f"Bad data from DAQ: data in unknown channel {r['channel']}") # Allocate memory results = numba.typed.List()