sciv 0.0.103__py3-none-any.whl → 0.0.104__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(is_monitor: bool = False , interval: float = 60) -> Callable:
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
 
@@ -63,9 +61,6 @@ def track_with_memory(is_monitor: bool = False , interval: float = 60) -> Callab
63
61
  @wraps(func)
64
62
  def wrapper(*args, **kwargs) -> Union[Any, dict]:
65
63
 
66
- if not is_monitor:
67
- return func(*args, **kwargs)
68
-
69
64
  process = psutil.Process(os.getpid())
70
65
 
71
66
  stop_monitor = False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sciv
3
- Version: 0.0.103
3
+ Version: 0.0.104
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=3Z5r_ssFEYGc0ZHSaRPLz6Ur4LKKMyOBA76qX_Kmemw,16982
36
- sciv-0.0.103.dist-info/METADATA,sha256=sUdT4krE1mTLee_PvzQXg0syisUxPtNf-1DHXVGVFyE,3495
37
- sciv-0.0.103.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
38
- sciv-0.0.103.dist-info/licenses/LICENSE,sha256=4UvHVf3qCOZjHLs4LkYz8u96XRpXnZrpTKrkUQPs5_A,1075
39
- sciv-0.0.103.dist-info/RECORD,,
35
+ sciv/util/_core_.py,sha256=2czL6lY4Fc6TXlsZwqh0AA93dX5sGVIeTRUGxMj3wQo,16778
36
+ sciv-0.0.104.dist-info/METADATA,sha256=AgrTxh16MqjaPvxm0y3bzgS5GNyoIqVgFT4tGc2mhck,3495
37
+ sciv-0.0.104.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
38
+ sciv-0.0.104.dist-info/licenses/LICENSE,sha256=4UvHVf3qCOZjHLs4LkYz8u96XRpXnZrpTKrkUQPs5_A,1075
39
+ sciv-0.0.104.dist-info/RECORD,,
File without changes