cloudnetpy 1.66.6__py3-none-any.whl → 1.66.7__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.
- cloudnetpy/cli.py +5 -3
- cloudnetpy/version.py +1 -1
- {cloudnetpy-1.66.6.dist-info → cloudnetpy-1.66.7.dist-info}/METADATA +1 -1
- {cloudnetpy-1.66.6.dist-info → cloudnetpy-1.66.7.dist-info}/RECORD +8 -8
- {cloudnetpy-1.66.6.dist-info → cloudnetpy-1.66.7.dist-info}/LICENSE +0 -0
- {cloudnetpy-1.66.6.dist-info → cloudnetpy-1.66.7.dist-info}/WHEEL +0 -0
- {cloudnetpy-1.66.6.dist-info → cloudnetpy-1.66.7.dist-info}/entry_points.txt +0 -0
- {cloudnetpy-1.66.6.dist-info → cloudnetpy-1.66.7.dist-info}/top_level.txt +0 -0
cloudnetpy/cli.py
CHANGED
@@ -5,7 +5,6 @@ import logging
|
|
5
5
|
import os
|
6
6
|
import re
|
7
7
|
import shutil
|
8
|
-
from collections.abc import Generator
|
9
8
|
from concurrent.futures import ThreadPoolExecutor, as_completed
|
10
9
|
from dataclasses import dataclass
|
11
10
|
from pathlib import Path
|
@@ -531,15 +530,17 @@ def _fetch_cloudnet_sites() -> list[str]:
|
|
531
530
|
return [site["id"] for site in res.json()]
|
532
531
|
|
533
532
|
|
534
|
-
def _parse_products(product_argument: str) ->
|
533
|
+
def _parse_products(product_argument: str) -> list[str]:
|
535
534
|
products = product_argument.split(",")
|
536
535
|
res = requests.get(f"{cloudnet_api_url}products", timeout=60)
|
537
536
|
res.raise_for_status()
|
538
537
|
valid_options = [p["id"] for p in res.json()]
|
538
|
+
valid_products = []
|
539
539
|
for product in products:
|
540
540
|
prod, _ = _parse_instrument(product)
|
541
541
|
if prod in valid_options:
|
542
|
-
|
542
|
+
valid_products.append(prod)
|
543
|
+
return valid_products
|
543
544
|
|
544
545
|
|
545
546
|
def main():
|
@@ -553,6 +554,7 @@ def main():
|
|
553
554
|
help="Site",
|
554
555
|
required=True,
|
555
556
|
choices=_fetch_cloudnet_sites(),
|
557
|
+
metavar="SITE",
|
556
558
|
)
|
557
559
|
parser.add_argument(
|
558
560
|
"-d", "--date", type=str, help="Date in YYYY-MM-DD", required=True
|
cloudnetpy/version.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
cloudnetpy/__init__.py,sha256=X_FqY-4yg5GUj5Edo14SToLEos6JIsC3fN-v1FUgQoA,43
|
2
|
-
cloudnetpy/cli.py,sha256=
|
2
|
+
cloudnetpy/cli.py,sha256=yucdLuNPkuSO9T8Kwi5KYY0M0e8cgzxFRTnyL5nbCbs,20779
|
3
3
|
cloudnetpy/cloudnetarray.py,sha256=Ol1ha4RPAmFZANL__U5CaMKX4oYMXYR6OnjoCZ9w3eo,7077
|
4
4
|
cloudnetpy/concat_lib.py,sha256=QxGWGsA_6el3Ma5-1y2MtrgFCC9Ohpe3yo6EzrPAiRI,11773
|
5
5
|
cloudnetpy/constants.py,sha256=RDB9aqpBRztk3QVCFgsmi9fwhtLuit_0WJrt0D6sDcc,736
|
@@ -9,7 +9,7 @@ cloudnetpy/metadata.py,sha256=v_VDo2vbdTxB0zIsfP69IcrwSKiRlLpsGdq6JPI4CoA,5306
|
|
9
9
|
cloudnetpy/output.py,sha256=YrWRBEZg0QNZRVnd9ziAziH-eJSh7O5JuWiH4ZxM0_s,15584
|
10
10
|
cloudnetpy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
cloudnetpy/utils.py,sha256=uhSdfx1ha6AqYl-Rlvlf053lIF-UnzcIAjjnh3fbS6U,29725
|
12
|
-
cloudnetpy/version.py,sha256=
|
12
|
+
cloudnetpy/version.py,sha256=ygpYycrewbHhKNGdgO-MC2aazPsrdzjDgRJgIzCuVEI,72
|
13
13
|
cloudnetpy/categorize/__init__.py,sha256=s-SJaysvVpVVo5kidiruWQO6p3gv2TXwY1wEHYO5D6I,44
|
14
14
|
cloudnetpy/categorize/atmos_utils.py,sha256=9-ymI6i1xASf-XAFyO87FaTfvq6bF89N1i_27OkUp-M,10104
|
15
15
|
cloudnetpy/categorize/attenuation.py,sha256=Y_-fzmQTltWTqIZTulJhovC7a6ifpMcaAazDJcnMIOc,990
|
@@ -115,9 +115,9 @@ cloudnetpy/products/mie_lu_tables.nc,sha256=It4fYpqJXlqOgL8jeZ-PxGzP08PMrELIDVe5
|
|
115
115
|
cloudnetpy/products/mwr_tools.py,sha256=rd7UC67O4fsIE5SaHVZ4qWvUJTj41ZGwgQWPwZzOM14,5377
|
116
116
|
cloudnetpy/products/product_tools.py,sha256=01Zc6xV8CSuYcIcLpchFf5POL3_c629-YMNDZJ51udA,10853
|
117
117
|
docs/source/conf.py,sha256=IKiFWw6xhUd8NrCg0q7l596Ck1d61XWeVjIFHVSG9Og,1490
|
118
|
-
cloudnetpy-1.66.
|
119
|
-
cloudnetpy-1.66.
|
120
|
-
cloudnetpy-1.66.
|
121
|
-
cloudnetpy-1.66.
|
122
|
-
cloudnetpy-1.66.
|
123
|
-
cloudnetpy-1.66.
|
118
|
+
cloudnetpy-1.66.7.dist-info/LICENSE,sha256=wcZF72bdaoG9XugpyE95Juo7lBQOwLuTKBOhhtANZMM,1094
|
119
|
+
cloudnetpy-1.66.7.dist-info/METADATA,sha256=US5sPm8mcOCkypxYLuFgDxeOYh4rxMRp-3gdQDQbERw,5784
|
120
|
+
cloudnetpy-1.66.7.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
121
|
+
cloudnetpy-1.66.7.dist-info/entry_points.txt,sha256=HhY7LwCFk4qFgDlXx_Fy983ZTd831WlhtdPIzV-Y3dY,51
|
122
|
+
cloudnetpy-1.66.7.dist-info/top_level.txt,sha256=ibSPWRr6ojS1i11rtBFz2_gkIe68mggj7aeswYfaOo0,16
|
123
|
+
cloudnetpy-1.66.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|