From 8c0c32008f87d269d96091d9211448a42c81567f Mon Sep 17 00:00:00 2001 From: Philipp Schmidt <philipp.schmidt@xfel.eu> Date: Tue, 15 Aug 2023 15:57:05 +0200 Subject: [PATCH] Minor styling and remove debug print --- src/exdf/data_reduction/method.py | 1 - src/exdf/write/sd_writer.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/exdf/data_reduction/method.py b/src/exdf/data_reduction/method.py index f2eaeff..d106ed4 100644 --- a/src/exdf/data_reduction/method.py +++ b/src/exdf/data_reduction/method.py @@ -23,7 +23,6 @@ def is_train_selection(x): def is_index_expression(x): - print(x, type(x)) if isinstance(x, (slice, list)): return True diff --git a/src/exdf/write/sd_writer.py b/src/exdf/write/sd_writer.py index 921092f..1f7b3bc 100644 --- a/src/exdf/write/sd_writer.py +++ b/src/exdf/write/sd_writer.py @@ -323,8 +323,7 @@ def build_sources_index(sources): else: instrument_indices[sd.source] = { grp: sd.data_counts(labelled=False, index_group=grp) - for grp in sd.index_groups - } + for grp in sd.index_groups} return control_indices, instrument_indices -- GitLab