shancx 1.9.33.162__py3-none-any.whl → 1.9.33.163__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.
- shancx/__init__.py +2 -0
- shancx/wait.py +2 -0
- {shancx-1.9.33.162.dist-info → shancx-1.9.33.163.dist-info}/METADATA +1 -1
- {shancx-1.9.33.162.dist-info → shancx-1.9.33.163.dist-info}/RECORD +6 -6
- {shancx-1.9.33.162.dist-info → shancx-1.9.33.163.dist-info}/WHEEL +0 -0
- {shancx-1.9.33.162.dist-info → shancx-1.9.33.163.dist-info}/top_level.txt +0 -0
shancx/__init__.py
CHANGED
|
@@ -346,11 +346,13 @@ from pathlib import Path
|
|
|
346
346
|
def lock_file(lock_file_path):
|
|
347
347
|
if os.path.exists(lock_file_path):
|
|
348
348
|
print(f" {lock_file_path} is existded ")
|
|
349
|
+
loggers.info(f" {lock_file_path} is existded ")
|
|
349
350
|
return True
|
|
350
351
|
try:
|
|
351
352
|
os.makedirs(os.path.dirname(lock_file_path), exist_ok=True)
|
|
352
353
|
with open(lock_file_path, 'w') as f:
|
|
353
354
|
f.write(f"process_id:{os.getpid()},create_time:{datetime.datetime.now()}")
|
|
355
|
+
loggers.info(f"create lock file {lock_file_path}")
|
|
354
356
|
return False
|
|
355
357
|
except Exception as e:
|
|
356
358
|
print(f"创建锁文件失败 create lock failed : {e}")
|
shancx/wait.py
CHANGED
|
@@ -176,6 +176,8 @@ def check_lock(lock_file):
|
|
|
176
176
|
pid_str = content.split('process_id:')[1].split(',')[0]
|
|
177
177
|
pid = int(pid_str)
|
|
178
178
|
if not is_process_alive(pid):
|
|
179
|
+
logger.info(f"not is_process_alive(pid)")
|
|
180
|
+
return False
|
|
179
181
|
os.remove(lock_file)
|
|
180
182
|
return False
|
|
181
183
|
else:
|
|
@@ -6,7 +6,7 @@ shancx/Point.py,sha256=gyIomOVbNoz6SOcAhhTS26NHBeJ0TOwB-ljNsBWN1ZE,1909
|
|
|
6
6
|
shancx/QC.py,sha256=gVH1jAZ2tI-sDygozwfXQgLEJNJscFuzxexWXuXHWHw,2803
|
|
7
7
|
shancx/Read.py,sha256=xX4ciDoWhL9KAsN3cWvaFAOMlSVwR56AR3dSB-SBnLI,3139
|
|
8
8
|
shancx/ZR.py,sha256=5APchqVoI1G2MkrN9YJSWCwfLUygcSFIsUXSo9aq1Qg,341
|
|
9
|
-
shancx/__init__.py,sha256=
|
|
9
|
+
shancx/__init__.py,sha256=jxCbCTmGO1dkdvEBgJjGqC3k8iytopcm1g2eGC3QcAs,18816
|
|
10
10
|
shancx/args.py,sha256=Nr80vgQpT3m31_crKGf5DvofCxyERJFbqJ1sHb1BIqs,1042
|
|
11
11
|
shancx/bak.py,sha256=eKe2o1Yq7LCldoA-LXi14s_QNf1BkQsDsWJ7pDoscrw,25428
|
|
12
12
|
shancx/cmp.py,sha256=cIQv-QTl-22FJa6tmHyBu_IQmMq5LnsQGGFK5jc5hMA,893
|
|
@@ -16,7 +16,7 @@ shancx/info.py,sha256=0rk_L8Z5uj9RliaZrzT-CArH9ZObmdmcp-1RxAItL08,1122
|
|
|
16
16
|
shancx/netdfJU.py,sha256=96KR9NMLr2Kcs_OOMpX7QPujdWUj0GCEUIZ7_4_pBxw,7741
|
|
17
17
|
shancx/sendM.py,sha256=CEpeHavseWILlfevhfOMYxYUIWhh4fCNkXGRsEjMxBE,3352
|
|
18
18
|
shancx/tool.py,sha256=T1Uwsd5vcfKLEMGq7DmhPOmsnBNZgYq-QML8W2a6KTc,1027
|
|
19
|
-
shancx/wait.py,sha256=
|
|
19
|
+
shancx/wait.py,sha256=Vpx-4P4Vppjo6JjaWBKKQltPtcSg-FIXbo1oe7ExqzE,8609
|
|
20
20
|
shancx/3D/__init__.py,sha256=pDFvW1OOEW-ueXH50NJIYdWlySHZU6sr5htzHUSeROo,1000
|
|
21
21
|
shancx/Algo/Class.py,sha256=bxJ9JhIjoxl0hJfjO126YrnyHWDpxCEAZ7qcPs0Y0ic,377
|
|
22
22
|
shancx/Algo/CudaPrefetcher1.py,sha256=mUVlS3txsriET26ZMZ6DYOnyzWr8Tz6wThifzWrC7k8,3951
|
|
@@ -83,7 +83,7 @@ shancx/Train/multiGpu.py,sha256=D_oZeiSc7VWktpnVDwrFOC1CYZSt9rxOKY5lngE5vFg,820
|
|
|
83
83
|
shancx/Train/prepare.py,sha256=vL_8UOA66oZCBIwCICtihsGibivtNgaVJGulJxfNdn8,6793
|
|
84
84
|
shancx/Train/renet50.py,sha256=wEhYk1X96WE5zuqHqVxWLJa-A5jDNkz4z6edORNufnA,6428
|
|
85
85
|
shancx/tensBoard/__init__.py,sha256=ga2C5YyJITvvQA1ocpxna_KNFnNRJVwkTjLoIglLZUQ,993
|
|
86
|
-
shancx-1.9.33.
|
|
87
|
-
shancx-1.9.33.
|
|
88
|
-
shancx-1.9.33.
|
|
89
|
-
shancx-1.9.33.
|
|
86
|
+
shancx-1.9.33.163.dist-info/METADATA,sha256=0XB2IgkOomSLRVrhvCiupwS_OD68A3_-J1yVm4WnXHE,644
|
|
87
|
+
shancx-1.9.33.163.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
88
|
+
shancx-1.9.33.163.dist-info/top_level.txt,sha256=akfCS1vKWz3pNmEN_yN9ZiGp-60IQY5ET38mRx_i_-4,7
|
|
89
|
+
shancx-1.9.33.163.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|