Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions dcnum/read/hdf5_concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down Expand Up @@ -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)
Expand Down
Loading