shancx 1.9.33.217__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/Plot/plotGlobal.py CHANGED
@@ -240,10 +240,10 @@ def plotBorder(UTCstr, nclon, nclat, cr, fig_title,savepath="./plotBorder", data
240
240
  cb.set_ticklabels([str(level) for level in clevels[:-1]], fontproperties=myfont)
241
241
  for label in ax.get_xticklabels() + ax.get_yticklabels():
242
242
  label.set_fontproperties(myfont)
243
- mkDir(figpath)
244
243
  plt.savefig(figpath, dpi=300, bbox_inches='tight')
245
244
  print(f"{fig_title.split('_')[0]}绘制完成: {figpath}")
246
245
  plt.close()
246
+
247
247
  """
248
248
  latArr = np.linspace(27, -13, 2000 )
249
249
  lonArr = np.linspace(70, 150, 4000)
shancx/Read.py CHANGED
@@ -55,18 +55,4 @@ if __name__ == "__main__":
55
55
  lonArr = lonMat[0]
56
56
  """
57
57
 
58
- import numpy as np
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
+ """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shancx
3
- Version: 1.9.33.217
3
+ Version: 1.9.33.219
4
4
  Summary: A simple timer decorator
5
5
  Home-page: https://gitee.com/shancx
6
6
  Author: shancx
@@ -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=x0nMlTXhxb5utkr9Tn9Aawz32m-dmLUXpG2HM9KywtI,2924
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
@@ -70,7 +71,7 @@ shancx/Plot/Gray2RGB.py,sha256=yDXu1xWVi7OtrS8_ExxK_ev1988kj1ZxoNCWf-kl4Zc,2734
70
71
  shancx/Plot/__init__.py,sha256=_fmDFZfh9HzDPBPKCMPrDT2DsblLVfrO-uFvUg76a74,19194
71
72
  shancx/Plot/draw_day_CR_PNG.py,sha256=ftOYdk80Xmry_H1uaypjrTUA0mJZBV7EGt5T7JfVg0E,7267
72
73
  shancx/Plot/exam.py,sha256=XXyBQp1Eb1siNiu7FY8ACiWH0g43ZSLTOGLqs3aKomE,3966
73
- shancx/Plot/plotGlobal.py,sha256=Sen5zJ9NE8sO-CSt0bFW-RaMt4uVMPJiFdNBepiLkj8,15288
74
+ shancx/Plot/plotGlobal.py,sha256=B2887VhMop6B3jEg7zD7ADlyIbKfyUOKffSJ2oEmEbo,15270
74
75
  shancx/Plot/radarNmc.py,sha256=ixmoDaoT6whmmrv4wD4p7H_DiNsyOEb2tUoz2KQgDeM,1273
75
76
  shancx/Plot/single_china_map.py,sha256=cRmZW6TtLBwLb-Y3syim_K1jM350CmB5zkK1nrAcaRQ,2116
76
77
  shancx/RdPzl/__init__.py,sha256=I5Isz3KfDgFZAdlRk4D-Hvp-8xH4F2Dl0XGxYGzUcKc,1166
@@ -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.217.dist-info/METADATA,sha256=R9m3JOOcqvVDkRY-CNE6lDAx7t8Hnv53OEoget7hzbw,850
89
- shancx-1.9.33.217.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
90
- shancx-1.9.33.217.dist-info/top_level.txt,sha256=akfCS1vKWz3pNmEN_yN9ZiGp-60IQY5ET38mRx_i_-4,7
91
- shancx-1.9.33.217.dist-info/RECORD,,
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,,