dcnum 0.20.1__py3-none-any.whl → 0.20.3__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 +7 -5
- dcnum/logic/ctrl.py +0 -1
- dcnum/segm/segm_thresh.py +0 -12
- {dcnum-0.20.1.dist-info → dcnum-0.20.3.dist-info}/METADATA +1 -1
- {dcnum-0.20.1.dist-info → dcnum-0.20.3.dist-info}/RECORD +9 -9
- {dcnum-0.20.1.dist-info → dcnum-0.20.3.dist-info}/LICENSE +0 -0
- {dcnum-0.20.1.dist-info → dcnum-0.20.3.dist-info}/WHEEL +0 -0
- {dcnum-0.20.1.dist-info → dcnum-0.20.3.dist-info}/top_level.txt +0 -0
dcnum/_version.py
CHANGED
|
@@ -95,12 +95,14 @@ class EventExtractorManagerThread(threading.Thread):
|
|
|
95
95
|
while True:
|
|
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
|
-
ldq
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
if (ldq := len(self.writer_dq)) > 1000:
|
|
99
|
+
time.sleep(1)
|
|
100
|
+
ldq2 = len(self.writer_dq)
|
|
101
|
+
stall_time = (ldq2 - 200) / (ldq - ldq2) if ldq2 > 200 else 0
|
|
102
|
+
time.sleep(stall_time)
|
|
101
103
|
self.logger.warning(
|
|
102
|
-
f"
|
|
103
|
-
|
|
104
|
+
f"Stalled {stall_time + 1:.1f}s for slow writer "
|
|
105
|
+
f"({ldq} chunks queued)")
|
|
104
106
|
|
|
105
107
|
cur_slot = 0
|
|
106
108
|
unavailable_slots = 0
|
dcnum/logic/ctrl.py
CHANGED
|
@@ -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/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=7ZBpIaoHyK5xe5B8niAFr7a4ME2vlFXrNQqhWCHU61Y,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=fCU28Pavf71zMRV5-N_9Kn1q213RslnMS1UZRmKw9Uo,7284
|
|
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
|
|
@@ -32,7 +32,7 @@ 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.3.dist-info/LICENSE,sha256=YRChA1C8A2E-amJbudwMcbTCZy_HzmeY0hMIvduh1MM,1089
|
|
45
|
+
dcnum-0.20.3.dist-info/METADATA,sha256=vSymdBOf42F_8WQKPFJ1Bbc6EUeQkWqlCg-g3ikiXOY,2194
|
|
46
|
+
dcnum-0.20.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
47
|
+
dcnum-0.20.3.dist-info/top_level.txt,sha256=Hmh38rgG_MFTVDpUDGuO2HWTSq80P585Het4COQzFTg,6
|
|
48
|
+
dcnum-0.20.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|