wolfhece 2.2.39__py3-none-any.whl → 2.2.40__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.
- wolfhece/apps/version.py +1 -1
- wolfhece/lazviewer/laz_viewer.py +4 -1
- wolfhece/pydownloader.py +33 -0
- {wolfhece-2.2.39.dist-info → wolfhece-2.2.40.dist-info}/METADATA +1 -1
- {wolfhece-2.2.39.dist-info → wolfhece-2.2.40.dist-info}/RECORD +8 -8
- {wolfhece-2.2.39.dist-info → wolfhece-2.2.40.dist-info}/WHEEL +0 -0
- {wolfhece-2.2.39.dist-info → wolfhece-2.2.40.dist-info}/entry_points.txt +0 -0
- {wolfhece-2.2.39.dist-info → wolfhece-2.2.40.dist-info}/top_level.txt +0 -0
wolfhece/apps/version.py
CHANGED
wolfhece/lazviewer/laz_viewer.py
CHANGED
@@ -537,6 +537,9 @@ class xyz_laz_grids():
|
|
537
537
|
""" Ensemble de grids """
|
538
538
|
|
539
539
|
def __init__(self, dir_grids:str, create:bool=False) -> None:
|
540
|
+
|
541
|
+
dir_grids = str(dir_grids)
|
542
|
+
|
540
543
|
self.grids:list[xyz_laz_grid] = []
|
541
544
|
self.colors = Classification_LAZ()
|
542
545
|
self.colors.init_2023()
|
@@ -747,7 +750,7 @@ class xyz_laz_grids():
|
|
747
750
|
|
748
751
|
return figmpl
|
749
752
|
|
750
|
-
def create_from_laz(self, dir_laz:
|
753
|
+
def create_from_laz(self, dir_laz:Path, shape:str=None, ds:float = 50, force_format = np.float64):
|
751
754
|
|
752
755
|
try:
|
753
756
|
from ..PyVertexvectors import Zones
|
wolfhece/pydownloader.py
CHANGED
@@ -43,6 +43,9 @@ class DownloadFiles(Enum):
|
|
43
43
|
CSVFILES = ('csv',)
|
44
44
|
DXFFILES = ('dxf',)
|
45
45
|
ZIPFILES = ('zip',)
|
46
|
+
LAZFILES = ('laz',)
|
47
|
+
GRIDWOLF = ('lst',)
|
48
|
+
LAZBIN = ('bin',)
|
46
49
|
|
47
50
|
class DonwloadDirectories(Enum):
|
48
51
|
""" Enum to define the directories for downloads. """
|
@@ -113,6 +116,11 @@ def download_file(url: str, destination: Union[str, Path] = None, download_type:
|
|
113
116
|
# Find the download type based on the URL suffix
|
114
117
|
for file_type_enum in DownloadFiles:
|
115
118
|
if suffix in file_type_enum.value:
|
119
|
+
|
120
|
+
if suffix == 'bin' and '_xyz.bin' in url:
|
121
|
+
# special case for LAZ bin files
|
122
|
+
file_type_enum = DownloadFiles.LAZBIN
|
123
|
+
|
116
124
|
file_type = file_type_enum
|
117
125
|
break
|
118
126
|
|
@@ -254,6 +262,31 @@ def toys_gpu_dataset(dir:str, dirweb:str = None, load_from_cache:bool = True):
|
|
254
262
|
|
255
263
|
return download_gpu_simulation(f"{GITLAB_EXAMPLE_GPU}/{dirweb}", DATADIR / dir, load_from_cache=load_from_cache)
|
256
264
|
|
265
|
+
def toys_laz_grid(dir:str, file:str, load_from_cache:bool = True):
|
266
|
+
""" Download toy LAZ or GRIDWOLF files from the WOLFHECE dataset.
|
267
|
+
|
268
|
+
:param dir: The directory where the file will be saved.
|
269
|
+
:param file: The name of the file to download.
|
270
|
+
:type dir: str
|
271
|
+
:type file: str
|
272
|
+
:return: The path to the downloaded directory.
|
273
|
+
"""
|
274
|
+
url = f"{GITLAB_EXAMPLE}/{dir}/{file}"
|
275
|
+
destination = DATADIR / dir / file
|
276
|
+
lst = download_file(url, destination, load_from_cache=load_from_cache)
|
277
|
+
|
278
|
+
with open(lst, 'r') as f:
|
279
|
+
lines = f.read().splitlines()
|
280
|
+
|
281
|
+
for line in lines:
|
282
|
+
line = line.strip().replace('\\', '/')
|
283
|
+
if line:
|
284
|
+
url = f"{GITLAB_EXAMPLE}/{dir}/{line}"
|
285
|
+
destination = DATADIR / dir / line
|
286
|
+
download_file(url, destination, load_from_cache=load_from_cache)
|
287
|
+
|
288
|
+
return DATADIR / dir
|
289
|
+
|
257
290
|
if __name__ == "__main__":
|
258
291
|
# Example usage
|
259
292
|
print(download_file(r'https:\\gitlab.uliege.be\HECE\wolf_examples\-\raw\main\Extract_part_array\extraction.vec'))
|
@@ -56,7 +56,7 @@ wolfhece/pyGui1D.py,sha256=9g7OS3YiKsqy--6y0cBD7x2gaqTTYFXWkxImpgnTA20,121937
|
|
56
56
|
wolfhece/pyLandUseFlanders.py,sha256=4R4J4BgP1-W0sebnb-TBreStZx3DKOh1zYj_dg23Ac4,8657
|
57
57
|
wolfhece/pybridges.py,sha256=bFAqjL4ColeJtwvyCPGQ8VllWoq1RbVWXxFrdfrvqm8,65954
|
58
58
|
wolfhece/pydike.py,sha256=dRb6qGkqoTXjf107KcajcIk1F_FuMPaOZLSwixT3dgA,11196
|
59
|
-
wolfhece/pydownloader.py,sha256=
|
59
|
+
wolfhece/pydownloader.py,sha256=EpHYZwEBRt3cyxRd_a7E7lx1VlwlYeQYNOAKVacJO4c,11518
|
60
60
|
wolfhece/pylogging.py,sha256=4TI8hgBB65z-zpvU5Rfa2jkPXPhJaqXjHVPwbcdzTNc,4528
|
61
61
|
wolfhece/pypolygons_scen.py,sha256=NWaNeK0RSUeOkgukeogK9FLmQiDjGZ9yhqs9208fojM,46237
|
62
62
|
wolfhece/pyshields.py,sha256=KMtUO5kD0lisKnJD1NsDz-qaY5DpFcmS4O3WkXtUSmo,27898
|
@@ -95,7 +95,7 @@ wolfhece/apps/curvedigitizer.py,sha256=lEJJwgAfulrrWQc-U6ij6sj59hWN3SZl4Yu1kQxVz
|
|
95
95
|
wolfhece/apps/hydrometry.py,sha256=lhhJsFeb4zGL4bNQTs0co85OQ_6ssL1Oy0OUJCzhfYE,656
|
96
96
|
wolfhece/apps/isocurrent.py,sha256=dagmGR8ja9QQ1gwz_8fU-N052hIw-W0mWGVkzLu6C7I,4247
|
97
97
|
wolfhece/apps/splashscreen.py,sha256=EdGDN9NhudIiP7c3gVqj7dp4MWFB8ySizM_tpMnsgpE,3091
|
98
|
-
wolfhece/apps/version.py,sha256=
|
98
|
+
wolfhece/apps/version.py,sha256=1RyOO8Q7UPJwuggHsbQr86F755yJaRu6lbSflfgskcg,388
|
99
99
|
wolfhece/apps/wolf.py,sha256=mRnjYsUu4KIsRuamdQWAINFMuwN4eJgMo9erG-hkZ70,729
|
100
100
|
wolfhece/apps/wolf2D.py,sha256=4z_OPQ3IgaLtjexjMKX9ppvqEYyjFLt1hcfFABy3-jU,703
|
101
101
|
wolfhece/apps/wolf_logo.bmp,sha256=ruJ4MA51CpGO_AYUp_dB4SWKHelvhOvd7Q8NrVOjDJk,3126
|
@@ -183,7 +183,7 @@ wolfhece/lagrangian/particles.py,sha256=sqp-_gfsIt8s3GNcI1eKaeOBMSo2C-wPrL7FpjkE
|
|
183
183
|
wolfhece/lagrangian/velocity_field.py,sha256=oGVjNm98gEpawreFIrC1lDyC5bEhkk2CsyYAlF1Kq50,10574
|
184
184
|
wolfhece/lazviewer/__init__.py,sha256=AmgfF1EhRVEfEZZI4qLIS8WbInvbDLL2dx-Mkd1pDE4,770
|
185
185
|
wolfhece/lazviewer/_add_path.py,sha256=XgMEXRhFhx9-B1hUsP7Zr199zNljYwT5dGMYSB9jRa4,639
|
186
|
-
wolfhece/lazviewer/laz_viewer.py,sha256=
|
186
|
+
wolfhece/lazviewer/laz_viewer.py,sha256=NzJfOqN7yV-RAPrpxn8UgU0KplKf7jFpWpwrodX0WtU,81662
|
187
187
|
wolfhece/lazviewer/libs/Qt5Core.dll,sha256=sTJ_ctYFY9KHMNytF-lzH_078zIvnKTjN-71FDkOWPw,4924928
|
188
188
|
wolfhece/lazviewer/libs/Qt5Gui.dll,sha256=07BeaOeYByraGkKYeDiSDYLawHM8tyd55pVJlKbZ4Y0,5436416
|
189
189
|
wolfhece/lazviewer/libs/Qt5Network.dll,sha256=U-9FiLE9LUKru8r8EQxTnwwlMpwS8JzUtenhkKTCox0,1038336
|
@@ -319,8 +319,8 @@ wolfhece/ui/wolf_multiselection_collapsiblepane.py,sha256=u4C7CXe_bUyGKx7c_Bi0x9
|
|
319
319
|
wolfhece/ui/wolf_times_selection_comparison_models.py,sha256=ORy7fz4dcp691qKzaOZHrRLZ0uXNhL-LIHxmpDGL6BI,5007
|
320
320
|
wolfhece/wintab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
321
321
|
wolfhece/wintab/wintab.py,sha256=8A-JNONV6ujgsgG3lM5Uw-pVgglPATwKs86oBzzljoc,7179
|
322
|
-
wolfhece-2.2.
|
323
|
-
wolfhece-2.2.
|
324
|
-
wolfhece-2.2.
|
325
|
-
wolfhece-2.2.
|
326
|
-
wolfhece-2.2.
|
322
|
+
wolfhece-2.2.40.dist-info/METADATA,sha256=XQvIHP3e-urKdNHAi5G8nvpKNuFSyBxxYuvePwSh59w,2785
|
323
|
+
wolfhece-2.2.40.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
324
|
+
wolfhece-2.2.40.dist-info/entry_points.txt,sha256=Jr187pyvA3EeJiQLjZK9yo6mJX7IAn6ygZU9T8qF_gQ,658
|
325
|
+
wolfhece-2.2.40.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
|
326
|
+
wolfhece-2.2.40.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|