sciv 0.0.103__py3-none-any.whl → 0.0.105__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.
sciv/util/_core_.py
CHANGED
|
@@ -39,14 +39,12 @@ def log(name: str = None) -> Logger:
|
|
|
39
39
|
return Logger(name, log_path=os.path.join(ul.log_file_path, name), is_form_file=ul.is_form_log_file)
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
def track_with_memory(
|
|
42
|
+
def track_with_memory(interval: float = 60) -> Callable:
|
|
43
43
|
"""
|
|
44
44
|
Decorator: Records memory usage at fixed intervals during function execution and returns the result, elapsed time, and memory list.
|
|
45
45
|
|
|
46
46
|
Parameters
|
|
47
47
|
----------
|
|
48
|
-
is_monitor : bool, optional
|
|
49
|
-
Whether to enable memory monitoring, default is False.
|
|
50
48
|
interval : float, optional
|
|
51
49
|
Sampling interval (seconds), default is 60 seconds.
|
|
52
50
|
|
|
@@ -61,10 +59,7 @@ def track_with_memory(is_monitor: bool = False , interval: float = 60) -> Callab
|
|
|
61
59
|
|
|
62
60
|
def decorator(func) -> Callable:
|
|
63
61
|
@wraps(func)
|
|
64
|
-
def wrapper(*args, **kwargs) ->
|
|
65
|
-
|
|
66
|
-
if not is_monitor:
|
|
67
|
-
return func(*args, **kwargs)
|
|
62
|
+
def wrapper(*args, **kwargs) -> dict:
|
|
68
63
|
|
|
69
64
|
process = psutil.Process(os.getpid())
|
|
70
65
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sciv
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.105
|
|
4
4
|
Summary: Unveiling the pivotal cell types involved in variant function regulation at a single-cell resolution
|
|
5
5
|
Project-URL: github, https://github.com/YuZhengM/sciv
|
|
6
6
|
Author-email: Zheng-Min Yu <yuzmbio@163.com>
|
|
@@ -32,8 +32,8 @@ sciv/tool/_matrix_.py,sha256=SnC3sXic_ufuEXStcD_HncvYH6apBdNK6nhG6jFLmjA,24324
|
|
|
32
32
|
sciv/tool/_random_walk_.py,sha256=2DPBRtd4A2MadfYDhkTw33WOATriiCULozNsUPE6lsY,48912
|
|
33
33
|
sciv/util/__init__.py,sha256=nER-hRRaBGl3CGgl2rLZAUOQ3uY6-m9wQ9VNrjO5EFE,2014
|
|
34
34
|
sciv/util/_constant_.py,sha256=w0wKQd8guLd1ZTW24_5aECrWsIWDiNQmEpLsWlHar1A,3000
|
|
35
|
-
sciv/util/_core_.py,sha256=
|
|
36
|
-
sciv-0.0.
|
|
37
|
-
sciv-0.0.
|
|
38
|
-
sciv-0.0.
|
|
39
|
-
sciv-0.0.
|
|
35
|
+
sciv/util/_core_.py,sha256=3sWLYFdGln-HQzM3BY4iYHjVjuiZaR4P4jOvZlXXrAY,16766
|
|
36
|
+
sciv-0.0.105.dist-info/METADATA,sha256=I_-ayhIMfZyJxrBvwk9zLtYR5OsXXYLvWCJjJ3luBDU,3495
|
|
37
|
+
sciv-0.0.105.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
38
|
+
sciv-0.0.105.dist-info/licenses/LICENSE,sha256=4UvHVf3qCOZjHLs4LkYz8u96XRpXnZrpTKrkUQPs5_A,1075
|
|
39
|
+
sciv-0.0.105.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|