From b019ea1da7b75350ca1a31c7a6488dbf18bf6a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Mon, 23 Nov 2026 12:43:34 +0100 Subject: [PATCH] docs: concatenated_hdf5_data does not include "time" The time stamps of the individual input files cannot be concatenated, so "time" is intentionally not included. Document this, and that sparsemed falls back to "frame" and "imaging:frame rate". Co-Authored-By: Claude Opus 5.5 --- CHANGELOG | 1 + dcnum/read/hdf5_concat.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 5d066f2..848c3a4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -70,6 +70,7 @@ - docs: comment on intended behavior of `fill_holes` (mask post-processing), Haralick texture features, and the sparsemed background assignment after cleansing + - docs: `concatenated_hdf5_data` does not include the "time" feature 0.31.2 - fix: online gates for `size_x` and `size_y` were ignored (regression in 0.16.6) - fix: "pipeline:dcnum yield" and "experiment:event count" were set to diff --git a/dcnum/read/hdf5_concat.py b/dcnum/read/hdf5_concat.py index 580965c..a84872f 100644 --- a/dcnum/read/hdf5_concat.py +++ b/dcnum/read/hdf5_concat.py @@ -42,6 +42,11 @@ def concatenated_hdf5_data(paths: list[pathlib.Path], input `paths`, then a `ValueError` is raised. Use the `features` argument to specify which features you need instead. - Basins are not considered. + - The "time" feature is not included, because the time stamps of + the individual input files cannot be concatenated (also, "frame" + is only included if `compute_frame` is set). This is intended; + algorithms that need a time axis (e.g. sparse median background + computation) fall back to "frame" and "imaging:frame rate". """ h5kwargs = {"mode": "w", "libver": "latest"} if isinstance(path_out, (pathlib.Path, str)): @@ -97,6 +102,8 @@ def concatenated_hdf5_data(paths: list[pathlib.Path], f"Ignoring {feat}; not implemented yet!") continue if feat in ["frame", "time"]: + # "frame" is computed below, "time" is not + # included (see docstring) continue shapes.setdefault(feat, []).append( h5["events"][feat].shape)