shancx 1.9.33.158__tar.gz → 1.9.33.160__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.
- {shancx-1.9.33.158 → shancx-1.9.33.160}/PKG-INFO +2 -3
- {shancx-1.9.33.158 → shancx-1.9.33.160}/README.md +1 -2
- {shancx-1.9.33.158 → shancx-1.9.33.160}/setup.py +1 -1
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/NN/__init__.py +31 -5
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx.egg-info/PKG-INFO +2 -3
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx.egg-info/SOURCES.txt +0 -3
- {shancx-1.9.33.158 → shancx-1.9.33.160}/setup.cfg +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/3D/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/Class.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/CudaPrefetcher1.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/Fake_image.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/Hsml.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/L2Loss.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/MetricTracker.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/Normalize.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/OptimizerWScheduler.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/Rmageresize.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/Savemodel.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/SmoothL1_losses.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/Tqdm.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/checknan.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/dsalgor.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/iouJU.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/mask.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/psnr.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/ssim.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/structural_similarity.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Algo/tool.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Calmetrics/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Calmetrics/calmetrics.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Calmetrics/calmetricsmatrixLib.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Calmetrics/rmseR2score.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Clip/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Command.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Df/DataFrame.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Df/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Df/tool.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Diffm/Psamples.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Diffm/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Diffm/test.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Doc/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/E/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Fillmiss/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Fillmiss/imgidwJU.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Fillmiss/imgidwLatLonJU.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Gpu/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/H9/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/H9/ahi_read_hsd.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/H9/ahisearchtable.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/H9/geometry.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Hug/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Inst.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Lib.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Mos/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Path.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Plot/GlobMap.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Plot/Gray2RGB.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Plot/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Plot/border.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Plot/draw_day_CR_PNG.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Plot/exam.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Plot/radarNmc.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Plot/single_china_map.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Point.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/QC.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/RdPzl/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Read.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/SN/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Time/GetTime.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Time/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Time/timeCycle.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Time/tool.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Train/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Train/makelist.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Train/multiGpu.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Train/prepare.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/Train/renet50.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/ZR.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/args.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/bak.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/cmp.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/df2database.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/getResponse.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/info.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/netdfJU.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/sendM.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/tensBoard/__init__.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/tool.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx/wait.py +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx.egg-info/dependency_links.txt +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx.egg-info/requires.txt +0 -0
- {shancx-1.9.33.158 → shancx-1.9.33.160}/shancx.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: shancx
|
|
3
|
-
Version: 1.9.33.
|
|
3
|
+
Version: 1.9.33.160
|
|
4
4
|
Summary: A simple timer decorator
|
|
5
5
|
Home-page: https://gitee.com/shancx
|
|
6
6
|
Author: shancx
|
|
@@ -11,12 +11,11 @@ Classifier: Operating System :: OS Independent
|
|
|
11
11
|
Requires-Python: >=3.6
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Welecome to shancx
|
|
15
15
|
|
|
16
16
|
A simple Python package that provides a timer decorator to measure the execution time of functions.
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
|
-
|
|
20
19
|
|
|
21
20
|
pip install shancx
|
|
22
21
|
|
|
@@ -15,11 +15,12 @@ import logging
|
|
|
15
15
|
from logging.handlers import RotatingFileHandler
|
|
16
16
|
import os
|
|
17
17
|
from shancx import crDir
|
|
18
|
-
def _loggers(logger_name="loggers", root="./logs", phase="project", level=logging.INFO, screen=True, max_bytes=10*1024*1024, backup_count=5, overwrite=False):
|
|
18
|
+
def _loggers(logger_name="loggers", root="./logs", phase="project", level=logging.INFO, screen=True, max_bytes=10*1024*1024, backup_count=5, overwrite=False,handlersflag=True):
|
|
19
19
|
'''set up logger with rotating file handler'''
|
|
20
20
|
l = logging.getLogger(logger_name)
|
|
21
|
-
if
|
|
22
|
-
|
|
21
|
+
if handlersflag:
|
|
22
|
+
if l.handlers:
|
|
23
|
+
return l
|
|
23
24
|
formatter = logging.Formatter(
|
|
24
25
|
"%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s", datefmt='%Y-%m-%d %H:%M:%S')
|
|
25
26
|
log_file = os.path.join(root, '{}.log'.format(phase))
|
|
@@ -45,8 +46,6 @@ for i in range(5):
|
|
|
45
46
|
time.sleep(1)
|
|
46
47
|
"""
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
50
49
|
import logging
|
|
51
50
|
def setlogger(level=logging.INFO):
|
|
52
51
|
|
|
@@ -65,3 +64,30 @@ if __name__ == "__main__":
|
|
|
65
64
|
logger.info("这是一条INFO日志")
|
|
66
65
|
'''
|
|
67
66
|
|
|
67
|
+
import os
|
|
68
|
+
from datetime import datetime
|
|
69
|
+
from shancx.NN import _loggers
|
|
70
|
+
from shancx import lock_file
|
|
71
|
+
from shancx.wait import check_lock
|
|
72
|
+
from shancx import crDir
|
|
73
|
+
logger =_loggers()
|
|
74
|
+
def check_process_data(UTC, sat_cd,basepath ="/mnt/wtx_weather_forecast/scx/test/lock_files" ):
|
|
75
|
+
try:
|
|
76
|
+
UTCStr = UTC.strftime("%Y%m%d%H%M")
|
|
77
|
+
file = f"/mnt/wtx_weather_forecast/scx/test/lock_files/{sat_cd}/{UTCStr[:4]}/{UTCStr[:8]}/File_{UTCStr}.lock"
|
|
78
|
+
crDir(file)
|
|
79
|
+
if not lock_file(file):
|
|
80
|
+
if check_lock(file):
|
|
81
|
+
logger.info("data is making or maked")
|
|
82
|
+
return True ,file
|
|
83
|
+
return False,file
|
|
84
|
+
except Exception as e:
|
|
85
|
+
logger.error(f"Error in check_and_process_data: {str(e)}")
|
|
86
|
+
return False,file
|
|
87
|
+
"""
|
|
88
|
+
flag1,file = check_process_data(UTC, "H9SEAS" )
|
|
89
|
+
if flag1:
|
|
90
|
+
sys.exit()
|
|
91
|
+
if os.path.exists(output_path): #配合使用
|
|
92
|
+
sys.exit()
|
|
93
|
+
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: shancx
|
|
3
|
-
Version: 1.9.33.
|
|
3
|
+
Version: 1.9.33.160
|
|
4
4
|
Summary: A simple timer decorator
|
|
5
5
|
Home-page: https://gitee.com/shancx
|
|
6
6
|
Author: shancx
|
|
@@ -11,12 +11,11 @@ Classifier: Operating System :: OS Independent
|
|
|
11
11
|
Requires-Python: >=3.6
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Welecome to shancx
|
|
15
15
|
|
|
16
16
|
A simple Python package that provides a timer decorator to measure the execution time of functions.
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
|
-
|
|
20
19
|
|
|
21
20
|
pip install shancx
|
|
22
21
|
|
|
@@ -17,8 +17,6 @@ shancx/df2database.py
|
|
|
17
17
|
shancx/getResponse.py
|
|
18
18
|
shancx/info.py
|
|
19
19
|
shancx/netdfJU.py
|
|
20
|
-
shancx/path.py
|
|
21
|
-
shancx/point.py
|
|
22
20
|
shancx/sendM.py
|
|
23
21
|
shancx/tool.py
|
|
24
22
|
shancx/wait.py
|
|
@@ -85,7 +83,6 @@ shancx/RdPzl/__init__.py
|
|
|
85
83
|
shancx/SN/__init__.py
|
|
86
84
|
shancx/Time/GetTime.py
|
|
87
85
|
shancx/Time/__init__.py
|
|
88
|
-
shancx/Time/getTime.py
|
|
89
86
|
shancx/Time/timeCycle.py
|
|
90
87
|
shancx/Time/tool.py
|
|
91
88
|
shancx/Train/__init__.py
|
|
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
|
|
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
|