wolfhece 2.1.33__py3-none-any.whl → 2.1.36__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.
Files changed (135) hide show
  1. wolfhece/GraphNotebook.py +10 -0
  2. wolfhece/GraphProfile.py +18 -8
  3. wolfhece/Lidar2002.py +10 -0
  4. wolfhece/ManageParams.py +10 -0
  5. wolfhece/Model1D.py +10 -0
  6. wolfhece/PyConfig.py +10 -0
  7. wolfhece/PyCrosssections.py +10 -0
  8. wolfhece/PyDraw.py +59 -48
  9. wolfhece/PyGui.py +10 -0
  10. wolfhece/PyGuiHydrology.py +10 -0
  11. wolfhece/PyHydrographs.py +10 -0
  12. wolfhece/PyPalette.py +10 -0
  13. wolfhece/PyParams.py +10 -0
  14. wolfhece/PyPictures.py +10 -0
  15. wolfhece/PyVertex.py +10 -0
  16. wolfhece/PyVertexvectors.py +10 -0
  17. wolfhece/PyWMS.py +10 -0
  18. wolfhece/RatingCurve.py +10 -0
  19. wolfhece/RatingCurve_xml.py +10 -0
  20. wolfhece/ReadDataDCENN.py +10 -0
  21. wolfhece/Results2DGPU.py +10 -0
  22. wolfhece/acceptability/Parallels.py +10 -0
  23. wolfhece/acceptability/acceptability.py +10 -0
  24. wolfhece/acceptability/acceptability_gui.py +10 -0
  25. wolfhece/acceptability/cli.py +10 -0
  26. wolfhece/acceptability/func.py +10 -0
  27. wolfhece/apps/ManageParams.py +10 -0
  28. wolfhece/apps/Optimisation_hydro.py +10 -0
  29. wolfhece/apps/check_install.py +10 -0
  30. wolfhece/apps/curvedigitizer.py +10 -0
  31. wolfhece/apps/isocurrent.py +10 -0
  32. wolfhece/apps/splashscreen.py +10 -0
  33. wolfhece/apps/version.py +1 -1
  34. wolfhece/apps/wolf.py +10 -0
  35. wolfhece/apps/wolf2D.py +10 -0
  36. wolfhece/apps/wolfcompare2Darrays.py +10 -0
  37. wolfhece/apps/wolfhydro.py +10 -0
  38. wolfhece/bernoulli/chamber.py +10 -0
  39. wolfhece/bernoulli/fluids.py +10 -0
  40. wolfhece/bernoulli/losses.py +10 -0
  41. wolfhece/bernoulli/network.py +10 -0
  42. wolfhece/bernoulli/pipe.py +10 -0
  43. wolfhece/blender/array2polygons.py +10 -0
  44. wolfhece/blender/ply.py +10 -0
  45. wolfhece/blender/quads.py +10 -0
  46. wolfhece/cli.py +27 -0
  47. wolfhece/clientserver/clientserver.py +10 -0
  48. wolfhece/coupling/hydrology_2d.py +10 -0
  49. wolfhece/drawing_obj.py +10 -0
  50. wolfhece/eva/bootstrap.py +10 -3
  51. wolfhece/eva/joint_models.py +10 -0
  52. wolfhece/eva/mixture_models.py +10 -0
  53. wolfhece/flow_SPWMI.py +10 -0
  54. wolfhece/friction_law.py +10 -0
  55. wolfhece/gpuview.py +10 -0
  56. wolfhece/hydrology/Catchment.py +10 -0
  57. wolfhece/hydrology/Comparison.py +21 -8
  58. wolfhece/hydrology/Dumping.py +10 -0
  59. wolfhece/hydrology/Optimisation.py +10 -0
  60. wolfhece/hydrology/Outlet.py +10 -0
  61. wolfhece/hydrology/PostProcessHydrology.py +10 -0
  62. wolfhece/hydrology/PyWatershed.py +10 -0
  63. wolfhece/hydrology/RetentionBasin.py +10 -0
  64. wolfhece/hydrology/SubBasin.py +10 -0
  65. wolfhece/hydrology/constant.py +10 -0
  66. wolfhece/hydrology/cst_exchanges.py +10 -0
  67. wolfhece/hydrology/data_treatment.py +10 -0
  68. wolfhece/hydrology/forcedexchanges.py +10 -0
  69. wolfhece/hydrology/plot_hydrology.py +10 -0
  70. wolfhece/hydrology/read.py +10 -0
  71. wolfhece/hydrology/slope_manager.py +10 -0
  72. wolfhece/hydrology/wolfMap_treatment.py +10 -0
  73. wolfhece/hydrometry/kiwis.py +10 -0
  74. wolfhece/hydrometry/kiwis_gui.py +10 -3
  75. wolfhece/hydrometry/kiwis_wolfgui.py +10 -0
  76. wolfhece/hydrometry/kiwispie.py +11 -4
  77. wolfhece/import_ascfiles.py +10 -0
  78. wolfhece/irm_qdf.py +10 -0
  79. wolfhece/lagrangian/advection.py +13 -2
  80. wolfhece/lagrangian/emitter.py +10 -0
  81. wolfhece/lagrangian/example_domain.py +10 -0
  82. wolfhece/lagrangian/particle_system.py +10 -0
  83. wolfhece/lagrangian/particle_system_ui.py +10 -0
  84. wolfhece/lagrangian/particles.py +10 -0
  85. wolfhece/lagrangian/velocity_field.py +10 -0
  86. wolfhece/libs/get_infos.cp310-win_amd64.pyd +0 -0
  87. wolfhece/libs/verify_wolf.cp310-win_amd64.pyd +0 -0
  88. wolfhece/libs/wolfogl.cp310-win_amd64.pyd +0 -0
  89. wolfhece/math_parser/calculator.py +10 -0
  90. wolfhece/mesh2d/bc_manager.py +10 -0
  91. wolfhece/mesh2d/cell_tracker.py +10 -0
  92. wolfhece/mesh2d/config_manager.py +10 -0
  93. wolfhece/mesh2d/cst_2D_boundary_conditions.py +10 -0
  94. wolfhece/mesh2d/wolf2dprev.py +10 -0
  95. wolfhece/multiprojects.py +10 -0
  96. wolfhece/opengl/py3d.py +10 -0
  97. wolfhece/picc.py +10 -0
  98. wolfhece/pyGui1D.py +10 -0
  99. wolfhece/pybridges.py +5 -3
  100. wolfhece/pydike.py +10 -0
  101. wolfhece/pylogging.py +10 -0
  102. wolfhece/pypolygons_scen.py +10 -0
  103. wolfhece/pyshields.py +10 -0
  104. wolfhece/pyviews.py +10 -0
  105. wolfhece/pywalous.py +10 -0
  106. wolfhece/radar/wolfradar.py +10 -0
  107. wolfhece/rain_SPWMI.py +10 -0
  108. wolfhece/rem/REMMaker.py +10 -0
  109. wolfhece/rem/RasterViz.py +10 -0
  110. wolfhece/report/reporting.py +10 -0
  111. wolfhece/scenario/check_scenario.py +10 -0
  112. wolfhece/scenario/config_manager.py +31 -2
  113. wolfhece/scenario/imposebc_void.py +10 -0
  114. wolfhece/scenario/update_void.py +10 -0
  115. wolfhece/textpillow.py +10 -0
  116. wolfhece/tools_mpl.py +10 -0
  117. wolfhece/ui/wolf_multiselection_collapsiblepane.py +10 -0
  118. wolfhece/ui/wolf_times_selection_comparison_models.py +10 -0
  119. wolfhece/wolf_array.py +10 -0
  120. wolfhece/wolf_hist.py +10 -0
  121. wolfhece/wolf_texture.py +10 -0
  122. wolfhece/wolf_tiles.py +10 -0
  123. wolfhece/wolf_vrt.py +10 -0
  124. wolfhece/wolf_zi_db.py +10 -0
  125. wolfhece/wolfresults_2D.py +10 -0
  126. wolfhece/xyz_file.py +10 -0
  127. {wolfhece-2.1.33.dist-info → wolfhece-2.1.36.dist-info}/METADATA +3 -2
  128. {wolfhece-2.1.33.dist-info → wolfhece-2.1.36.dist-info}/RECORD +131 -133
  129. {wolfhece-2.1.33.dist-info → wolfhece-2.1.36.dist-info}/entry_points.txt +1 -0
  130. wolfhece/libs/WolfOGL.c +0 -42489
  131. wolfhece/libs/WolfOGL.pyx +0 -1979
  132. wolfhece/libs/verify_license.cp310-win_amd64.pyd +0 -0
  133. wolfhece/test_Results2DGPU.py +0 -7
  134. {wolfhece-2.1.33.dist-info → wolfhece-2.1.36.dist-info}/WHEEL +0 -0
  135. {wolfhece-2.1.33.dist-info → wolfhece-2.1.36.dist-info}/top_level.txt +0 -0
@@ -1,8 +1,15 @@
1
1
  """
2
- WxPython Graphical User Interface for walloon hydrometry website : https://hydrometrie.wallonie.be/
2
+ Author: HECE - University of Liege, Pierre Archambeau, Loïc Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
3
10
 
4
- @authors : Loïc Archambeau, Pierre Archambeau
5
- @affiliation : ULiège - HECE
11
+ """
12
+ WxPython Graphical User Interface for walloon hydrometry website : https://hydrometrie.wallonie.be/
6
13
  """
7
14
  import wx
8
15
  import wx.adv
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import numpy as np
2
12
  import logging
3
13
 
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import collections
2
12
  try:
3
13
  from collections.abc import Iterable
@@ -15,10 +25,7 @@ from tabulate import tabulate
15
25
  import logging
16
26
  logger = logging.getLogger(__name__)
17
27
 
18
- try:
19
- basestring
20
- except NameError:
21
- basestring = str
28
+ basestring = str
22
29
 
23
30
  class KIWISError(Exception):
24
31
  """
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import os
2
12
  import glob
3
13
  from osgeo import osr, gdal
wolfhece/irm_qdf.py CHANGED
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  #Code INS des communes belges
2
12
  import numpy as np
3
13
  from os import path,mkdir
@@ -1,7 +1,18 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  from wolfhece.lagrangian.velocity_field import Velocity_Field, Velocity_Field_numba, Velocity_2Fields_numba
2
12
 
3
13
  import numpy as np
4
14
  from numba import jit
15
+ from typing import Union, Literal
5
16
 
6
17
  @jit(nopython=True)
7
18
  def advection_xy(start_x:np.ndarray,
@@ -10,7 +21,7 @@ def advection_xy(start_x:np.ndarray,
10
21
  end_y:np.ndarray,
11
22
  uv_field:Velocity_Field_numba,
12
23
  dt:float,
13
- scheme:['Euler_expl', 'RK22', 'RK4', 'RK45']) -> float:
24
+ scheme:Literal['Euler_expl', 'RK22', 'RK4', 'RK45']) -> float:
14
25
  """
15
26
  Update the position of the particles.
16
27
  """
@@ -112,7 +123,7 @@ def advection_xy_2fields(start_x:np.ndarray,
112
123
  uv_fields:Velocity_2Fields_numba,
113
124
  current_time:float,
114
125
  dt:float,
115
- scheme:['Euler_expl', 'RK22', 'RK4', 'RK45']) -> float:
126
+ scheme:Literal['Euler_expl', 'RK22', 'RK4', 'RK45']) -> float:
116
127
  """
117
128
  Update the position of the particles.
118
129
  """
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import numpy as np
2
12
  from shapely.geometry import Polygon, Point, MultiPolygon, LineString
3
13
  from shapely.wkt import dumps, loads
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  from shapely.geometry import Polygon, Point
2
12
  import numpy as np
3
13
  from pathlib import Path
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import numpy as np
2
12
  from OpenGL.GL import *
3
13
  import logging
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import numpy as np
2
12
  from typing import Literal, Union
3
13
  import wx
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import numpy as np
2
12
  from typing import Literal, Union
3
13
  from OpenGL.GL import *
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import numpy as np
2
12
  from numba import float64, float32, int32, int64, char
3
13
  from numba import jit
Binary file
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import wx
2
12
  import logging
3
13
 
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import wx
2
12
  import numpy as np
3
13
  from scipy.spatial import cKDTree
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  #Libraries
2
12
  from os.path import join, exists
3
13
  import matplotlib.pyplot as plt
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import wx
2
12
  from wx.dataview import TreeListCtrl
3
13
  from wx import dataview, StaticText, TextCtrl
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  from enum import Enum
2
12
  from typing import Union, Literal
3
13
  import logging
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import re
2
12
  import sys
3
13
 
wolfhece/multiprojects.py CHANGED
@@ -1,4 +1,14 @@
1
1
 
2
+ """
3
+ Author: HECE - University of Liege, Pierre Archambeau
4
+ Date: 2024
5
+
6
+ Copyright (c) 2024 University of Liege. All rights reserved.
7
+
8
+ This script and its content are protected by copyright law. Unauthorized
9
+ copying or distribution of this file, via any medium, is strictly prohibited.
10
+ """
11
+
2
12
  from os.path import exists, join
3
13
  import json
4
14
  from enum import Enum
wolfhece/opengl/py3d.py CHANGED
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import wx
2
12
  from wx import glcanvas
3
13
  from OpenGL.GL import *
wolfhece/picc.py CHANGED
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import geopandas as gpd
2
12
  from pathlib import Path
3
13
  from typing import List, Union
wolfhece/pyGui1D.py CHANGED
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau, Utashi Ciraane Docile
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  """
2
12
  This module contains the scripts that are needed to
3
13
  create, execute and soon interact with a Wolf-1D model.
wolfhece/pybridges.py CHANGED
@@ -1,9 +1,11 @@
1
1
  """
2
- Bridges manager
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
3
4
 
4
- :author : Pierre Archambeau
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
5
6
 
6
- 2023 - Liège University - HECE
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
7
9
  """
8
10
 
9
11
  from os.path import splitext, exists, join, isfile, basename
wolfhece/pydike.py CHANGED
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import logging
2
12
 
3
13
  from .PyVertexvectors import Triangulation, vector,Zones, zone
wolfhece/pylogging.py CHANGED
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  """
2
12
  Logging handler to redirect messages sent to the python logging module to wx if necessary
3
13
 
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  from os.path import splitext, exists, join, isfile, basename
2
12
  from os import listdir, scandir
3
13
  import numpy as np
wolfhece/pyshields.py CHANGED
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import matplotlib.pyplot as plt
2
12
  import math
3
13
  import numpy as np
wolfhece/pyviews.py CHANGED
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import logging
2
12
 
3
13
  from .drawing_obj import Element_To_Draw
wolfhece/pywalous.py CHANGED
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  from osgeo import ogr, gdal
2
12
  import geopandas as gpd
3
13
  from os.path import exists, join, dirname, basename
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau, Christophe Dessers
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import wradlib as wrl
2
12
  import wx
3
13
  from math import floor
wolfhece/rain_SPWMI.py CHANGED
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  from os.path import join,exists,normpath
2
12
  import requests
3
13
  import pandas as pd
wolfhece/rem/REMMaker.py CHANGED
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  #!/usr/bin/env python
2
12
  import os
3
13
  import sys
wolfhece/rem/RasterViz.py CHANGED
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  #!/usr/bin/env python
2
12
  import os
3
13
  import sys
@@ -1,4 +1,14 @@
1
1
 
2
+ """
3
+ Author: HECE - University of Liege, Pierre Archambeau
4
+ Date: 2024
5
+
6
+ Copyright (c) 2024 University of Liege. All rights reserved.
7
+
8
+ This script and its content are protected by copyright law. Unauthorized
9
+ copying or distribution of this file, via any medium, is strictly prohibited.
10
+ """
11
+
2
12
  from docx import Document
3
13
  from docx.shared import Pt
4
14
  from docx.oxml.ns import qn
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import inspect
2
12
  import os
3
13
  import glob
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: HECE - University of Liege, Pierre Archambeau
3
+ Date: 2024
4
+
5
+ Copyright (c) 2024 University of Liege. All rights reserved.
6
+
7
+ This script and its content are protected by copyright law. Unauthorized
8
+ copying or distribution of this file, via any medium, is strictly prohibited.
9
+ """
10
+
1
11
  import wx
2
12
  from wx.dataview import TreeListCtrl, TreeListItem
3
13
  from wx import dataview, StaticText, TextCtrl
@@ -1389,18 +1399,22 @@ class UI_Manager_2D_GPU():
1389
1399
  def oncreatevrt(self,e:wx.MouseEvent):
1390
1400
  """ Création d'un fichier vrt """
1391
1401
 
1402
+ logging.info(_('Creating vrt ...'))
1392
1403
  mydata = self._treelist.GetItemData(self._selected_item)
1393
1404
 
1394
1405
  # création du fichier vrt
1395
1406
  self._parent.create_vrt(mydata['path'])
1407
+ logging.info(_('... done !'))
1396
1408
 
1397
1409
  def oncreatevec(self,e:wx.MouseEvent):
1398
1410
  """ Création d'un fichier vec """
1399
1411
 
1412
+ logging.info(_('Creating vecz ...'))
1400
1413
  mydata = self._treelist.GetItemData(self._selected_item)
1401
1414
 
1402
1415
  # création du fichier vrt
1403
1416
  new_zones = self._parent.create_vec(mydata['path'])
1417
+ logging.info(_('... done !'))
1404
1418
 
1405
1419
  dlg = wx.MessageDialog(None, _('Do you want to add the new zones to the map ?'), _('Warning'), wx.YES_NO)
1406
1420
  ret = dlg.ShowModal()
@@ -1409,17 +1423,24 @@ class UI_Manager_2D_GPU():
1409
1423
 
1410
1424
  new_zones.set_mapviewer()
1411
1425
 
1412
- self._parent.mapviewer.add_object('vector', newobj = new_zones, id=mydata['path'].name)
1426
+ cur_ids = self._parent.mapviewer.get_list_keys(drawing_type=draw_type.VECTORS)
1427
+ newid = mydata['path'].name
1428
+ while newid in cur_ids:
1429
+ newid = newid + '_'
1430
+ self._parent.mapviewer.add_object('vector', newobj = new_zones, id=newid)
1431
+ self._parent.mapviewer.Refresh()
1413
1432
 
1414
1433
  dlg.Destroy()
1415
1434
 
1416
1435
  def ontranslatevrt2tif(self,e:wx.MouseEvent):
1417
1436
  """ Traduction d'un fichier vrt en tif """
1418
1437
 
1438
+ logging.info(_('Translating vrt to tif ...'))
1419
1439
  mydata = self._treelist.GetItemData(self._selected_item)
1420
1440
 
1421
1441
  # création du fichier vrt
1422
1442
  self._parent.translate_vrt2tif(mydata['path'])
1443
+ logging.info(_('... done !'))
1423
1444
 
1424
1445
  def oncheck_consistency(self,e:wx.MouseEvent):
1425
1446
  """ Vérification de la cohérence des fichiers """
@@ -1449,6 +1470,7 @@ class UI_Manager_2D_GPU():
1449
1470
  def oncreate_simulation(self,e:wx.MouseEvent):
1450
1471
  """ Creation d'une simulation """
1451
1472
 
1473
+ logging.info(_('Creating simulation ...'))
1452
1474
  hydro = self.choice_hydrograph()
1453
1475
  if hydro is None:
1454
1476
  return
@@ -1526,6 +1548,8 @@ class UI_Manager_2D_GPU():
1526
1548
 
1527
1549
  self._txtctrl.write(batch)
1528
1550
 
1551
+ logging.info(_('... done !'))
1552
+
1529
1553
  def onrun_batch(self,e:wx.MouseEvent):
1530
1554
  """ run batch file """
1531
1555
 
@@ -1839,7 +1863,12 @@ class UI_Manager_2D_GPU():
1839
1863
 
1840
1864
  myarray = WolfArray(str(mydata), srcheader=self._parent._header, nullvalue=99999., idx=str(mydata.name))
1841
1865
 
1842
- self._parent.mapviewer.add_object('array', newobj=myarray, id=str(mydata.name))
1866
+ ids = self._parent.mapviewer.get_list_keys(draw_type.ARRAYS)
1867
+ newid = str(mydata.name)
1868
+ while newid in ids:
1869
+ newid = newid + '_'
1870
+
1871
+ self._parent.mapviewer.add_object('array', newobj=myarray, id=newid)
1843
1872
 
1844
1873
  elif mydata.name.endswith(GPU_2D_file_extensions.TXT.value):
1845
1874
  # Chragement d'un hydrogramme