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)