dcnum 0.11.3__tar.gz → 0.11.5__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.11.3 → dcnum-0.11.5}/.github/workflows/deploy_pypi.yml +1 -1
- {dcnum-0.11.3 → dcnum-0.11.5}/CHANGELOG +4 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/PKG-INFO +1 -1
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/_version.py +2 -2
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/read/hdf5_data.py +4 -3
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/write/queue_collector_thread.py +1 -1
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum.egg-info/PKG-INFO +1 -1
- dcnum-0.11.5/dcnum.egg-info/top_level.txt +1 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/pyproject.toml +0 -3
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/test_read_hdf5.py +10 -0
- dcnum-0.11.3/dcnum.egg-info/top_level.txt +0 -4
- {dcnum-0.11.3 → dcnum-0.11.5}/.github/workflows/check.yml +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/.gitignore +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/.readthedocs.yml +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/LICENSE +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/README.rst +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/__init__.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/__init__.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/event_extractor_manager_thread.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/feat_background/__init__.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/feat_background/base.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/feat_background/bg_roll_median.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/feat_background/bg_sparse_median.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/feat_brightness/__init__.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/feat_brightness/bright_all.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/feat_brightness/common.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/feat_moments/__init__.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/feat_moments/ct_opencv.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/feat_moments/mt_legacy.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/feat_texture/__init__.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/feat_texture/common.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/feat_texture/tex_all.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/gate.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/feat/queue_event_extractor.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/meta/__init__.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/meta/ppid.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/read/__init__.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/read/cache.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/read/const.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/segm/__init__.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/segm/segm_thresh.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/segm/segmenter.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/segm/segmenter_cpu.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/segm/segmenter_gpu.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/segm/segmenter_manager_thread.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/write/__init__.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/write/deque_writer_thread.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum/write/writer.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum.egg-info/SOURCES.txt +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum.egg-info/dependency_links.txt +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/dcnum.egg-info/requires.txt +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/docs/conf.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/docs/extensions/github_changelog.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/docs/index.rst +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/docs/requirements.txt +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/setup.cfg +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/conftest.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/data/fmt-hdf5_cytoshot_full-features_2023.zip +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/data/fmt-hdf5_cytoshot_full-features_legacy_allev_2023.zip +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/helper_methods.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/requirements.txt +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/test_feat_background_bg_roll_median.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/test_feat_brightness.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/test_feat_haralick.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/test_feat_moments_based.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/test_init.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/test_ppid.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/test_ppid_segm.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/test_read_concat_hdf5.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/test_segm_thresh.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/test_segmenter.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/test_write_deque_writer_thread.py +0 -0
- {dcnum-0.11.3 → dcnum-0.11.5}/tests/test_write_writer.py +0 -0
|
@@ -111,9 +111,10 @@ class HDF5Data:
|
|
|
111
111
|
self.meta[key] = self.meta[key].decode("utf-8")
|
|
112
112
|
for key in h5.get("logs", []):
|
|
113
113
|
alog = list(h5["logs"][key])
|
|
114
|
-
if
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
if alog:
|
|
115
|
+
if isinstance(alog[0], bytes):
|
|
116
|
+
alog = [ll.decode("utf") for ll in alog]
|
|
117
|
+
self.logs[key] = alog
|
|
117
118
|
for tab in h5.get("tables", []):
|
|
118
119
|
tabdict = {}
|
|
119
120
|
for tkey in h5["tables"][tab].dtype.fields.keys():
|
|
@@ -188,7 +188,7 @@ class QueueCollectorThread(threading.Thread):
|
|
|
188
188
|
|
|
189
189
|
# We have reached the writer threshold. This means the extractor
|
|
190
190
|
# has analyzed at least `write_threshold` frames (not events).
|
|
191
|
-
self.logger.debug(f"Current
|
|
191
|
+
self.logger.debug(f"Current frame: {cur_frame}")
|
|
192
192
|
|
|
193
193
|
# Create an event stash
|
|
194
194
|
stash = EventStash(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dcnum
|
|
@@ -40,9 +40,6 @@ tracker = "https://github.com/DC-Analysis/dcnum/issues"
|
|
|
40
40
|
documentation = "https://dcnum.readthedocs.io/en/stable/"
|
|
41
41
|
changelog = "https://dcnum.readthedocs.io/en/stable/sec_changelog.html"
|
|
42
42
|
|
|
43
|
-
[tool.setuptools.packages]
|
|
44
|
-
find = {}
|
|
45
|
-
|
|
46
43
|
[tool.setuptools_scm]
|
|
47
44
|
write_to = "dcnum/_version.py"
|
|
48
45
|
version_scheme = "post-release"
|
|
@@ -184,3 +184,13 @@ def test_pickling_state_tables():
|
|
|
184
184
|
for lk in table:
|
|
185
185
|
assert np.allclose(h5d1.tables["sample_table"][lk],
|
|
186
186
|
h5d2.tables["sample_table"][lk])
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
def test_read_empty_logs():
|
|
190
|
+
path = retrieve_data(
|
|
191
|
+
data_path / "fmt-hdf5_cytoshot_full-features_legacy_allev_2023.zip")
|
|
192
|
+
with h5py.File(path, "a") as h5:
|
|
193
|
+
h5.require_group("logs").create_dataset(name="empty_log",
|
|
194
|
+
data=[])
|
|
195
|
+
h5r = read.HDF5Data(path)
|
|
196
|
+
assert "empty_log" not in h5r.logs
|
|
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.11.3 → dcnum-0.11.5}/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
|