dcnum 0.11.5__tar.gz → 0.11.6__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.5 → dcnum-0.11.6}/CHANGELOG +2 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/PKG-INFO +1 -1
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/_version.py +2 -2
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/queue_event_extractor.py +15 -1
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/write/queue_collector_thread.py +7 -2
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum.egg-info/PKG-INFO +1 -1
- {dcnum-0.11.5 → dcnum-0.11.6}/.github/workflows/check.yml +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/.github/workflows/deploy_pypi.yml +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/.gitignore +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/.readthedocs.yml +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/LICENSE +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/README.rst +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/__init__.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/__init__.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/event_extractor_manager_thread.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/feat_background/__init__.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/feat_background/base.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/feat_background/bg_roll_median.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/feat_background/bg_sparse_median.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/feat_brightness/__init__.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/feat_brightness/bright_all.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/feat_brightness/common.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/feat_moments/__init__.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/feat_moments/ct_opencv.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/feat_moments/mt_legacy.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/feat_texture/__init__.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/feat_texture/common.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/feat_texture/tex_all.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/feat/gate.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/meta/__init__.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/meta/ppid.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/read/__init__.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/read/cache.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/read/const.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/read/hdf5_data.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/segm/__init__.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/segm/segm_thresh.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/segm/segmenter.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/segm/segmenter_cpu.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/segm/segmenter_gpu.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/segm/segmenter_manager_thread.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/write/__init__.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/write/deque_writer_thread.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum/write/writer.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum.egg-info/SOURCES.txt +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum.egg-info/dependency_links.txt +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum.egg-info/requires.txt +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/dcnum.egg-info/top_level.txt +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/docs/conf.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/docs/extensions/github_changelog.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/docs/index.rst +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/docs/requirements.txt +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/pyproject.toml +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/setup.cfg +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/conftest.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/data/fmt-hdf5_cytoshot_full-features_2023.zip +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/data/fmt-hdf5_cytoshot_full-features_legacy_allev_2023.zip +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/helper_methods.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/requirements.txt +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/test_feat_background_bg_roll_median.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/test_feat_brightness.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/test_feat_haralick.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/test_feat_moments_based.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/test_init.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/test_ppid.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/test_ppid_segm.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/test_read_concat_hdf5.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/test_read_hdf5.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/test_segm_thresh.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/test_segmenter.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/test_write_deque_writer_thread.py +0 -0
- {dcnum-0.11.5 → dcnum-0.11.6}/tests/test_write_writer.py +0 -0
|
@@ -257,7 +257,21 @@ class QueueEventExtractor:
|
|
|
257
257
|
if self.finalize_extraction.value:
|
|
258
258
|
# The manager told us that there is nothing more coming.
|
|
259
259
|
self.logger.debug(
|
|
260
|
-
f"Finalizing worker {self} with PID {os.getpid()}"
|
|
260
|
+
f"Finalizing worker {self} with PID {os.getpid()}. "
|
|
261
|
+
f"{self.event_queue.qsize()} events are still queued.")
|
|
262
|
+
# Tell the queue background thread to flush all data to
|
|
263
|
+
# the queue. The background thread will quit once it has
|
|
264
|
+
# flushed all buffered data to the pipe.
|
|
265
|
+
self.event_queue.close()
|
|
266
|
+
self.logger.debug(
|
|
267
|
+
f"Closed event queue from Process PID {os.getpid()}")
|
|
268
|
+
# Join the queue background thread. It blocks until the
|
|
269
|
+
# background thread exits, ensuring that all data in the
|
|
270
|
+
# buffer has been flushed to the pipe.
|
|
271
|
+
self.event_queue.join_thread()
|
|
272
|
+
self.logger.debug(
|
|
273
|
+
f"Joined event queue background thread from"
|
|
274
|
+
f"Process PID {os.getpid()}")
|
|
261
275
|
break
|
|
262
276
|
else:
|
|
263
277
|
try:
|
|
@@ -183,7 +183,9 @@ class QueueCollectorThread(threading.Thread):
|
|
|
183
183
|
continue
|
|
184
184
|
|
|
185
185
|
if len(cur_nevents) == 0:
|
|
186
|
-
self.logger.
|
|
186
|
+
self.logger.info(
|
|
187
|
+
"Reached the end of the current dataset (frame "
|
|
188
|
+
f"{cur_frame + 1} of {len(self.feat_nevents)}).")
|
|
187
189
|
break
|
|
188
190
|
|
|
189
191
|
# We have reached the writer threshold. This means the extractor
|
|
@@ -214,6 +216,7 @@ class QueueCollectorThread(threading.Thread):
|
|
|
214
216
|
try:
|
|
215
217
|
idx, events = self.event_queue.get(timeout=.3)
|
|
216
218
|
except queue.Empty:
|
|
219
|
+
# No time.sleep here, because we are using timeout above.
|
|
217
220
|
continue
|
|
218
221
|
if cur_frame <= idx < cur_frame + self.write_threshold:
|
|
219
222
|
stash.add_events(index=idx, events=events)
|
|
@@ -253,6 +256,8 @@ class QueueCollectorThread(threading.Thread):
|
|
|
253
256
|
|
|
254
257
|
# Write the number of events.
|
|
255
258
|
self.writer_dq.append(("nevents",
|
|
259
|
+
# Get nevents for each event from the
|
|
260
|
+
# frame-based cur_nevents array.
|
|
256
261
|
np.array(stash.feat_nevents)[
|
|
257
262
|
indices - stash.index_offset]
|
|
258
263
|
))
|
|
@@ -261,4 +266,4 @@ class QueueCollectorThread(threading.Thread):
|
|
|
261
266
|
self.written_frames += stash.num_frames
|
|
262
267
|
|
|
263
268
|
# Increment current frame index.
|
|
264
|
-
cur_frame +=
|
|
269
|
+
cur_frame += len(cur_nevents)
|
|
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.11.5 → dcnum-0.11.6}/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
|