dcnum 0.20.0__py3-none-any.whl → 0.20.2__py3-none-any.whl
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/_version.py +2 -2
- dcnum/feat/event_extractor_manager_thread.py +2 -2
- dcnum/logic/ctrl.py +1 -2
- dcnum/read/const.py +1 -1
- dcnum/segm/segm_thresh.py +0 -12
- {dcnum-0.20.0.dist-info → dcnum-0.20.2.dist-info}/METADATA +1 -1
- {dcnum-0.20.0.dist-info → dcnum-0.20.2.dist-info}/RECORD +10 -10
- {dcnum-0.20.0.dist-info → dcnum-0.20.2.dist-info}/LICENSE +0 -0
- {dcnum-0.20.0.dist-info → dcnum-0.20.2.dist-info}/WHEEL +0 -0
- {dcnum-0.20.0.dist-info → dcnum-0.20.2.dist-info}/top_level.txt +0 -0
dcnum/_version.py
CHANGED
|
@@ -96,8 +96,8 @@ class EventExtractorManagerThread(threading.Thread):
|
|
|
96
96
|
# If the writer_dq starts filling up, then this could lead to
|
|
97
97
|
# an oom-kill signal. Stall for the writer to prevent this.
|
|
98
98
|
ldq = len(self.writer_dq)
|
|
99
|
-
if ldq >
|
|
100
|
-
stallsec = ldq /
|
|
99
|
+
if ldq > 1000:
|
|
100
|
+
stallsec = ldq / 1000
|
|
101
101
|
self.logger.warning(
|
|
102
102
|
f"Stalling {stallsec:.1f}s for slow writer")
|
|
103
103
|
time.sleep(stallsec)
|
dcnum/logic/ctrl.py
CHANGED
|
@@ -613,7 +613,7 @@ class DCNumJobRunner(threading.Thread):
|
|
|
613
613
|
self.logger.debug(f"Creating basin for {feats}")
|
|
614
614
|
# Relative and absolute paths.
|
|
615
615
|
pin = pathlib.Path(hin.filename).resolve()
|
|
616
|
-
pout = pathlib.Path(hout.filename).resolve()
|
|
616
|
+
pout = pathlib.Path(hout.filename).resolve().parent
|
|
617
617
|
paths = [pin, os.path.relpath(pin, pout)]
|
|
618
618
|
hw.store_basin(name="dcnum basin",
|
|
619
619
|
features=feats,
|
|
@@ -666,7 +666,6 @@ class DCNumJobRunner(threading.Thread):
|
|
|
666
666
|
num_extractors = max(1, num_extractors)
|
|
667
667
|
num_segmenters = max(1, num_segmenters)
|
|
668
668
|
self.job.kwargs["segmenter_kwargs"]["num_workers"] = num_segmenters
|
|
669
|
-
|
|
670
669
|
slot_chunks = mp_spawn.Array("i", num_slots)
|
|
671
670
|
slot_states = mp_spawn.Array("u", num_slots)
|
|
672
671
|
|
dcnum/read/const.py
CHANGED
dcnum/segm/segm_thresh.py
CHANGED
|
@@ -10,18 +10,6 @@ class SegmentThresh(CPUSegmenter):
|
|
|
10
10
|
}
|
|
11
11
|
requires_background_correction = True
|
|
12
12
|
|
|
13
|
-
def __init__(self, thresh=-6, *args, **kwargs):
|
|
14
|
-
"""Simple image thresholding segmentation
|
|
15
|
-
|
|
16
|
-
Parameters
|
|
17
|
-
----------
|
|
18
|
-
thresh: int
|
|
19
|
-
grayscale threshold value for creating the mask image;
|
|
20
|
-
For a background-corrected image, pixels with values below
|
|
21
|
-
this value are considered to be part of the mask.
|
|
22
|
-
"""
|
|
23
|
-
super(SegmentThresh, self).__init__(thresh=thresh, *args, **kwargs)
|
|
24
|
-
|
|
25
13
|
@staticmethod
|
|
26
14
|
def segment_approach(image, *,
|
|
27
15
|
thresh: float = -6):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
dcnum/__init__.py,sha256=hcawIKS7utYiOyVhOAX9t7K3xYzP1b9862VV0b6qSrQ,74
|
|
2
|
-
dcnum/_version.py,sha256=
|
|
2
|
+
dcnum/_version.py,sha256=fjo2NJgbaJxJv2ocVgLAHWnVtoMK9lf7zKzP8Fc9QqE,413
|
|
3
3
|
dcnum/feat/__init__.py,sha256=jUJYWTD3VIoDNKrmryXbjHb1rGwYtK4b7VPWihYgUoo,325
|
|
4
|
-
dcnum/feat/event_extractor_manager_thread.py,sha256=
|
|
4
|
+
dcnum/feat/event_extractor_manager_thread.py,sha256=mAjPnS7K-ZmKbWolTNCnjXe3e-y5canNhf1l_GRYil0,7131
|
|
5
5
|
dcnum/feat/gate.py,sha256=svbObmqpYdqPawpfrsEjTiUPJXf24GrNi8PXTKT-z44,7225
|
|
6
6
|
dcnum/feat/queue_event_extractor.py,sha256=XhA930QVQ1Z4saisbcGTrEut-fSgwTyfDn6b9GzD4iY,15644
|
|
7
7
|
dcnum/feat/feat_background/__init__.py,sha256=OTmMuazHNaSrZb2XW4cnJ6PlgJLbKrPbaidpEixYa0A,341
|
|
@@ -20,7 +20,7 @@ dcnum/feat/feat_texture/__init__.py,sha256=6StM9S540UVtdFFR3bHa7nfCTomeVdoo7Uy9C
|
|
|
20
20
|
dcnum/feat/feat_texture/common.py,sha256=COXHpXS-7DMouGu3WF83I76L02Sr7P9re4lxajh6g0E,439
|
|
21
21
|
dcnum/feat/feat_texture/tex_all.py,sha256=eGjjNfPpfZw7FA_VNFCIMiU38KD0qcGbxLciYy-tCiA,4097
|
|
22
22
|
dcnum/logic/__init__.py,sha256=7J3GrwJInNQbrLk61HRIV7X7p69TAIbMYpR34hh6u14,177
|
|
23
|
-
dcnum/logic/ctrl.py,sha256=
|
|
23
|
+
dcnum/logic/ctrl.py,sha256=QU-Mwb_YKu-4oIk6XZ4oyXvzIeSc4CZodFVyIGqJnWs,34411
|
|
24
24
|
dcnum/logic/job.py,sha256=cF4bPiEy5UkDmQN91Ku2yxBW0nXBEmKTNkIHlL2LT-U,6724
|
|
25
25
|
dcnum/logic/json_encoder.py,sha256=cxMnqisbKEVf-rVcw6rK2BBAb6iz_hKFaGl81kK36lQ,571
|
|
26
26
|
dcnum/meta/__init__.py,sha256=AVqRgyKXO1orKnE305h88IBvoZ1oz6X11HN1WP5nGvg,60
|
|
@@ -28,11 +28,11 @@ dcnum/meta/paths.py,sha256=J_ikeHzd7gEeRgAKjuayz3x6q4h1fOiDadM-ZxhAGm4,1053
|
|
|
28
28
|
dcnum/meta/ppid.py,sha256=Q3jg8lZt5tlGIby_-7rBqTANesMjJrmxASXZhsvBD_Y,7706
|
|
29
29
|
dcnum/read/__init__.py,sha256=ksLdV8EkOU3EPje8teCOSehcUeGAZfg9TQ5ltuEUgls,216
|
|
30
30
|
dcnum/read/cache.py,sha256=lisrGG7AyvVitf0h92wh5FvYCsxa0pWyGcAyYwGP-LQ,6471
|
|
31
|
-
dcnum/read/const.py,sha256=
|
|
31
|
+
dcnum/read/const.py,sha256=GG9iyXDtEldvJYOBnhZjlimzIeBMAt4bSr2-xn2gzzc,464
|
|
32
32
|
dcnum/read/hdf5_data.py,sha256=Yyq02UTILc5ZgIQXpR9Y0wuX2WT8s0g23PraI7KxmJY,23489
|
|
33
33
|
dcnum/read/mapped.py,sha256=UryArlrIsHxjOyimBL2Nooi3r73zuGtnGdqdxa6PK_g,3076
|
|
34
34
|
dcnum/segm/__init__.py,sha256=iiq_1A9DU5wMUcKnsZ53E7NyzCkbZCJeUDimzunE-OM,247
|
|
35
|
-
dcnum/segm/segm_thresh.py,sha256=
|
|
35
|
+
dcnum/segm/segm_thresh.py,sha256=W9f9--aYmXpFjv3IASB6I90V40PJcIe_Jt_1iK-eHhw,946
|
|
36
36
|
dcnum/segm/segmenter.py,sha256=gVzmP6CuwI9Qfk8GN_xWGu_xbtVTOhxIOWn-2yr_H1Y,12220
|
|
37
37
|
dcnum/segm/segmenter_cpu.py,sha256=IzhPNQaO4TBh3EzZqLGaBAeRryfBKnld7Joe8qY4AB4,10690
|
|
38
38
|
dcnum/segm/segmenter_gpu.py,sha256=Au1MQdAalVsmJ-cmb3OcCmEMBfXSDuJjdXJTGqEIcG8,1962
|
|
@@ -41,8 +41,8 @@ dcnum/write/__init__.py,sha256=QvWHeZmjHI18i-YlGYuzN3i7dVWY9UCReKchrJ-gif0,260
|
|
|
41
41
|
dcnum/write/deque_writer_thread.py,sha256=ao7F1yrVKyufgC4rC0Y2_Vt7snuT6KpI7W2qVxcjdhk,1994
|
|
42
42
|
dcnum/write/queue_collector_thread.py,sha256=d_WfdsZdFnFsiAY0zVMwUlA4juIMeiWYmE_-rezBQCE,11734
|
|
43
43
|
dcnum/write/writer.py,sha256=e6J8YVqhS7kzkpPIMoDMokJpqSy1WWNdOrwaJof1oVc,15601
|
|
44
|
-
dcnum-0.20.
|
|
45
|
-
dcnum-0.20.
|
|
46
|
-
dcnum-0.20.
|
|
47
|
-
dcnum-0.20.
|
|
48
|
-
dcnum-0.20.
|
|
44
|
+
dcnum-0.20.2.dist-info/LICENSE,sha256=YRChA1C8A2E-amJbudwMcbTCZy_HzmeY0hMIvduh1MM,1089
|
|
45
|
+
dcnum-0.20.2.dist-info/METADATA,sha256=LqO-Q5BYT7seF2uuF-QeWffIQwDh3YxKSNE4ds4METQ,2194
|
|
46
|
+
dcnum-0.20.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
47
|
+
dcnum-0.20.2.dist-info/top_level.txt,sha256=Hmh38rgG_MFTVDpUDGuO2HWTSq80P585Het4COQzFTg,6
|
|
48
|
+
dcnum-0.20.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|