dcnum 0.17.0__tar.gz → 0.17.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dcnum might be problematic. Click here for more details.
- {dcnum-0.17.0 → dcnum-0.17.2}/CHANGELOG +7 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/PKG-INFO +1 -1
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/_version.py +2 -2
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/read/const.py +2 -3
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/read/hdf5_data.py +1 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum.egg-info/PKG-INFO +1 -1
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_read_concat_hdf5.py +21 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_read_hdf5.py +4 -1
- {dcnum-0.17.0 → dcnum-0.17.2}/.github/workflows/check.yml +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/.github/workflows/deploy_pypi.yml +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/.gitignore +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/.readthedocs.yml +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/LICENSE +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/README.rst +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/docs/conf.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/docs/extensions/github_changelog.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/docs/index.rst +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/docs/requirements.txt +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/pyproject.toml +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/setup.cfg +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/__init__.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/__init__.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/event_extractor_manager_thread.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/feat_background/__init__.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/feat_background/base.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/feat_background/bg_copy.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/feat_background/bg_roll_median.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/feat_background/bg_sparse_median.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/feat_brightness/__init__.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/feat_brightness/bright_all.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/feat_brightness/common.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/feat_moments/__init__.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/feat_moments/ct_opencv.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/feat_moments/mt_legacy.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/feat_texture/__init__.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/feat_texture/common.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/feat_texture/tex_all.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/gate.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/feat/queue_event_extractor.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/logic/__init__.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/logic/ctrl.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/logic/job.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/logic/json_encoder.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/meta/__init__.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/meta/paths.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/meta/ppid.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/read/__init__.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/read/cache.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/segm/__init__.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/segm/segm_thresh.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/segm/segmenter.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/segm/segmenter_cpu.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/segm/segmenter_gpu.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/segm/segmenter_manager_thread.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/write/__init__.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/write/deque_writer_thread.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/write/queue_collector_thread.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum/write/writer.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum.egg-info/SOURCES.txt +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum.egg-info/dependency_links.txt +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum.egg-info/requires.txt +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/src/dcnum.egg-info/top_level.txt +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/conftest.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/data/fmt-hdf5_cytoshot_extended-moments-features.zip +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/data/fmt-hdf5_cytoshot_full-features_2023.zip +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/data/fmt-hdf5_cytoshot_full-features_legacy_allev_2023.zip +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/data/fmt-hdf5_shapein_empty.zip +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/data/fmt-hdf5_shapein_raw-with-variable-length-logs.zip +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/helper_methods.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/requirements.txt +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_feat_background_base.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_feat_background_bg_copy.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_feat_background_bg_roll_median.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_feat_background_bg_sparsemed.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_feat_brightness.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_feat_event_extractor_manager.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_feat_gate.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_feat_haralick.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_feat_moments_based.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_feat_moments_based_extended.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_init.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_logic_job.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_logic_join.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_logic_json.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_logic_pipeline.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_meta_paths.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_meta_ppid_base.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_meta_ppid_bg.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_meta_ppid_data.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_meta_ppid_feat.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_meta_ppid_gate.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_meta_ppid_segm.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_read_basin.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_segm_base.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_segm_thresh.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_write_deque_writer_thread.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_write_queue_collector_thread.py +0 -0
- {dcnum-0.17.0 → dcnum-0.17.2}/tests/test_write_writer.py +0 -0
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
0.17.2
|
|
2
|
+
- fix: make sure unsupported features are not propagated in
|
|
3
|
+
`concatenated_hdf5_data` (#27)
|
|
4
|
+
0.17.1
|
|
5
|
+
- ref: remove "bg_med" and "index_online" from protected scalar features,
|
|
6
|
+
because "bg_med" may change due to a different background computation
|
|
7
|
+
method and "index_online" enumerates events from online segmentation
|
|
1
8
|
0.17.0
|
|
2
9
|
- feat: allow to register topical search paths
|
|
3
10
|
- ref: remove deprecated `get_ppid_from_kwargs` methods
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
#: Scalar features that apply to all events in a frame
|
|
1
|
+
#: Scalar features that apply to all events in a frame and which are
|
|
2
|
+
#: not computed from image or image_bg data.
|
|
2
3
|
PROTECTED_FEATURES = [
|
|
3
|
-
"bg_med",
|
|
4
4
|
"flow_rate",
|
|
5
5
|
"frame",
|
|
6
6
|
"g_force",
|
|
7
|
-
"index_online",
|
|
8
7
|
"pressure",
|
|
9
8
|
"temp",
|
|
10
9
|
"temp_amb",
|
|
@@ -432,6 +432,7 @@ def concatenated_hdf5_data(paths: List[pathlib.Path],
|
|
|
432
432
|
if not isinstance(h5["events"][feat], h5py.Dataset):
|
|
433
433
|
warnings.warn(
|
|
434
434
|
f"Ignoring {feat}; not implemented yet!")
|
|
435
|
+
continue
|
|
435
436
|
if feat in ["frame", "time"]:
|
|
436
437
|
continue
|
|
437
438
|
shapes.setdefault(feat, []).append(
|
|
@@ -54,6 +54,27 @@ def test_concat_basic_to_file(tmp_path):
|
|
|
54
54
|
assert path_out.exists()
|
|
55
55
|
|
|
56
56
|
|
|
57
|
+
def test_concat_ignore_contour(tmp_path):
|
|
58
|
+
# get file wtih contour information
|
|
59
|
+
path = retrieve_data(data_path /
|
|
60
|
+
"fmt-hdf5_cytoshot_full-features_2023.zip")
|
|
61
|
+
cdata = np.array([[2, 2], [2, 3], [2, 5], [4, 5], [4, 2]])
|
|
62
|
+
with h5py.File(path, mode="a") as h5:
|
|
63
|
+
contour = h5["events"].create_group("contour")
|
|
64
|
+
|
|
65
|
+
for ii in range(40):
|
|
66
|
+
contour.create_dataset(name=f"{ii}", data=cdata, dtype=np.uint64)
|
|
67
|
+
|
|
68
|
+
path_out = tmp_path / "test.rtdc"
|
|
69
|
+
with pytest.warns(UserWarning,
|
|
70
|
+
match="Ignoring contour; not implemented yet!"):
|
|
71
|
+
data = read.concatenated_hdf5_data([path, path, path],
|
|
72
|
+
path_out=path_out)
|
|
73
|
+
|
|
74
|
+
assert "deform" in data
|
|
75
|
+
assert "conotur" not in data
|
|
76
|
+
|
|
77
|
+
|
|
57
78
|
def test_concat_invalid_input_feature_number():
|
|
58
79
|
path = retrieve_data(data_path /
|
|
59
80
|
"fmt-hdf5_cytoshot_full-features_2023.zip")
|
|
@@ -201,7 +201,10 @@ def test_open_real_data():
|
|
|
201
201
|
|
|
202
202
|
# scalar features
|
|
203
203
|
fsc = h5dat.features_scalar_frame
|
|
204
|
-
|
|
204
|
+
# Changed in version 0.17.1: bg_med is not returned anymore,
|
|
205
|
+
# because it is computed from the background image which
|
|
206
|
+
# depends on the background method employed.
|
|
207
|
+
exp = ['frame', 'time']
|
|
205
208
|
assert set(fsc) == set(exp)
|
|
206
209
|
|
|
207
210
|
# feature names
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dcnum-0.17.0 → dcnum-0.17.2}/tests/data/fmt-hdf5_cytoshot_full-features_legacy_allev_2023.zip
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|