shancx 1.9.33.218__py3-none-any.whl → 1.9.33.219__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/Read.py +1 -15
- shancx/npz.py +15 -0
- {shancx-1.9.33.218.dist-info → shancx-1.9.33.219.dist-info}/METADATA +1 -1
- {shancx-1.9.33.218.dist-info → shancx-1.9.33.219.dist-info}/RECORD +6 -5
- {shancx-1.9.33.218.dist-info → shancx-1.9.33.219.dist-info}/WHEEL +0 -0
- {shancx-1.9.33.218.dist-info → shancx-1.9.33.219.dist-info}/top_level.txt +0 -0
shancx/Read.py
CHANGED
|
@@ -55,18 +55,4 @@ if __name__ == "__main__":
|
|
|
55
55
|
lonArr = lonMat[0]
|
|
56
56
|
"""
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
from pathlib import Path
|
|
60
|
-
def npsavez(output, data):
|
|
61
|
-
output = output.replace('.npy', '.npz')
|
|
62
|
-
output_path = Path(output).with_suffix('.npz')
|
|
63
|
-
output_path.parent.mkdir(parents=True, exist_ok=True)
|
|
64
|
-
np.savez_compressed(output_path, data=data)
|
|
65
|
-
print(f"{output_path} done")
|
|
66
|
-
def nploadz(output_path):
|
|
67
|
-
return np.load(Path(output_path).with_suffix('.npz'))['data']
|
|
68
|
-
|
|
69
|
-
"""
|
|
70
|
-
savez(output, data)
|
|
71
|
-
nploadz(output_path)
|
|
72
|
-
"""
|
|
58
|
+
|
shancx/npz.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import numpy as np
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
def npzSave(output, data):
|
|
4
|
+
output = output.replace('.npy', '.npz')
|
|
5
|
+
output_path = Path(output).with_suffix('.npz')
|
|
6
|
+
output_path.parent.mkdir(parents=True, exist_ok=True)
|
|
7
|
+
np.savez_compressed(output_path, data=data)
|
|
8
|
+
print(f"{output_path} done")
|
|
9
|
+
def npzLoad(output_path):
|
|
10
|
+
return np.load(Path(output_path).with_suffix('.npz'))['data']
|
|
11
|
+
|
|
12
|
+
"""
|
|
13
|
+
npzSave(output, data)
|
|
14
|
+
npzLoad(output_path)
|
|
15
|
+
"""
|
|
@@ -5,7 +5,7 @@ shancx/Lib.py,sha256=GUAspllSxk39mvj-F1Q8Ys0EcY_lQfZPRGPE7L3x4SE,977
|
|
|
5
5
|
shancx/Path1.py,sha256=vX4A5RgdwVyIVVNZRocl18rOu1Z8YMLfDb0B92-0bE8,5334
|
|
6
6
|
shancx/Point.py,sha256=gyIomOVbNoz6SOcAhhTS26NHBeJ0TOwB-ljNsBWN1ZE,1909
|
|
7
7
|
shancx/QC.py,sha256=MFxbPMEwrnk5l0sTFMrx13wPlXJ5WI5TovzaiBoEr0E,9848
|
|
8
|
-
shancx/Read.py,sha256=
|
|
8
|
+
shancx/Read.py,sha256=qaX4Qf9J8vXjam60PWjWdAL-1hvEwcEe_d4bR4MZ2OU,2465
|
|
9
9
|
shancx/Resize.py,sha256=uwiOhD-aWPDLvIwOYEX-XXN_suOXv6hPDcaGyr4JLC4,4044
|
|
10
10
|
shancx/ZR.py,sha256=5APchqVoI1G2MkrN9YJSWCwfLUygcSFIsUXSo9aq1Qg,341
|
|
11
11
|
shancx/__init__.py,sha256=6sfiHElECqfy5eEEGqaCAw4YiKxgKfJ5IFFh9yvtewk,11442
|
|
@@ -17,6 +17,7 @@ shancx/geosProj.py,sha256=JMmtj3kV8rtFkKbmwvTKuDWlC8AkgLG8JvCPzkn8Dfs,2685
|
|
|
17
17
|
shancx/getResponse.py,sha256=QmJfa4czGCOiKb8RuCLXKE7AAKVADAptNiwn7v1tfbM,1055
|
|
18
18
|
shancx/info.py,sha256=0rk_L8Z5uj9RliaZrzT-CArH9ZObmdmcp-1RxAItL08,1122
|
|
19
19
|
shancx/netdfJU.py,sha256=96KR9NMLr2Kcs_OOMpX7QPujdWUj0GCEUIZ7_4_pBxw,7741
|
|
20
|
+
shancx/npz.py,sha256=ZydULlx1ZhgwxrdIrVDm9lGa8KY4q1MJ9dZo_wQriso,462
|
|
20
21
|
shancx/sendM.py,sha256=CEpeHavseWILlfevhfOMYxYUIWhh4fCNkXGRsEjMxBE,3352
|
|
21
22
|
shancx/wait.py,sha256=OgT9JmEgMH7d3ir3TEksx0_Kyl_S4bkOKl50jvVpdFA,8575
|
|
22
23
|
shancx/3D/__init__.py,sha256=pDFvW1OOEW-ueXH50NJIYdWlySHZU6sr5htzHUSeROo,1000
|
|
@@ -85,7 +86,7 @@ shancx/Train/multiGpu.py,sha256=D_oZeiSc7VWktpnVDwrFOC1CYZSt9rxOKY5lngE5vFg,820
|
|
|
85
86
|
shancx/Train/prepare.py,sha256=vL_8UOA66oZCBIwCICtihsGibivtNgaVJGulJxfNdn8,6793
|
|
86
87
|
shancx/Train/renet50.py,sha256=wEhYk1X96WE5zuqHqVxWLJa-A5jDNkz4z6edORNufnA,6428
|
|
87
88
|
shancx/tensBoard/__init__.py,sha256=ga2C5YyJITvvQA1ocpxna_KNFnNRJVwkTjLoIglLZUQ,993
|
|
88
|
-
shancx-1.9.33.
|
|
89
|
-
shancx-1.9.33.
|
|
90
|
-
shancx-1.9.33.
|
|
91
|
-
shancx-1.9.33.
|
|
89
|
+
shancx-1.9.33.219.dist-info/METADATA,sha256=1kSsnmfca6bBuHc__iWVuMBQJ_71kxk7fHHwyQNssaY,850
|
|
90
|
+
shancx-1.9.33.219.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
91
|
+
shancx-1.9.33.219.dist-info/top_level.txt,sha256=akfCS1vKWz3pNmEN_yN9ZiGp-60IQY5ET38mRx_i_-4,7
|
|
92
|
+
shancx-1.9.33.219.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|