wolfhece 2.1.32__py3-none-any.whl → 2.1.34__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 (130) hide show
  1. wolfhece/GraphNotebook.py +10 -0
  2. wolfhece/GraphProfile.py +10 -0
  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 +9 -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 +10 -0
  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 +10 -0
  77. wolfhece/import_ascfiles.py +10 -0
  78. wolfhece/irm_qdf.py +10 -0
  79. wolfhece/lagrangian/advection.py +10 -0
  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/math_parser/calculator.py +10 -0
  87. wolfhece/mesh2d/bc_manager.py +10 -0
  88. wolfhece/mesh2d/cell_tracker.py +10 -0
  89. wolfhece/mesh2d/config_manager.py +10 -0
  90. wolfhece/mesh2d/cst_2D_boundary_conditions.py +10 -0
  91. wolfhece/mesh2d/wolf2dprev.py +10 -0
  92. wolfhece/multiprojects.py +10 -0
  93. wolfhece/opengl/py3d.py +29 -14
  94. wolfhece/picc.py +10 -0
  95. wolfhece/pyGui1D.py +10 -0
  96. wolfhece/pybridges.py +5 -3
  97. wolfhece/pydike.py +10 -0
  98. wolfhece/pylogging.py +10 -0
  99. wolfhece/pypolygons_scen.py +10 -0
  100. wolfhece/pyshields.py +10 -0
  101. wolfhece/pyviews.py +10 -0
  102. wolfhece/pywalous.py +10 -0
  103. wolfhece/radar/wolfradar.py +10 -0
  104. wolfhece/rain_SPWMI.py +10 -0
  105. wolfhece/rem/REMMaker.py +10 -0
  106. wolfhece/rem/RasterViz.py +10 -0
  107. wolfhece/report/reporting.py +10 -0
  108. wolfhece/scenario/check_scenario.py +10 -0
  109. wolfhece/scenario/config_manager.py +31 -2
  110. wolfhece/scenario/imposebc_void.py +10 -0
  111. wolfhece/scenario/update_void.py +10 -0
  112. wolfhece/shaders/quad_geom_shader.glsl +2 -1
  113. wolfhece/textpillow.py +10 -0
  114. wolfhece/tools_mpl.py +10 -0
  115. wolfhece/ui/wolf_multiselection_collapsiblepane.py +10 -0
  116. wolfhece/ui/wolf_times_selection_comparison_models.py +10 -0
  117. wolfhece/wolf_array.py +24 -5
  118. wolfhece/wolf_hist.py +10 -0
  119. wolfhece/wolf_texture.py +11 -1
  120. wolfhece/wolf_tiles.py +10 -0
  121. wolfhece/wolf_vrt.py +10 -0
  122. wolfhece/wolf_zi_db.py +10 -0
  123. wolfhece/wolfresults_2D.py +10 -0
  124. wolfhece/xyz_file.py +10 -0
  125. {wolfhece-2.1.32.dist-info → wolfhece-2.1.34.dist-info}/METADATA +2 -2
  126. {wolfhece-2.1.32.dist-info → wolfhece-2.1.34.dist-info}/RECORD +129 -130
  127. wolfhece/test_Results2DGPU.py +0 -7
  128. {wolfhece-2.1.32.dist-info → wolfhece-2.1.34.dist-info}/WHEEL +0 -0
  129. {wolfhece-2.1.32.dist-info → wolfhece-2.1.34.dist-info}/entry_points.txt +0 -0
  130. {wolfhece-2.1.32.dist-info → wolfhece-2.1.34.dist-info}/top_level.txt +0 -0
@@ -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
@@ -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 *
@@ -1220,22 +1230,25 @@ class CanvasOGL(glcanvas.GLCanvas):
1220
1230
 
1221
1231
  x,y,idx,alpha = self.picker[locx, locy]
1222
1232
 
1223
- logging.info('coords: {} - {}'.format(x,y))
1224
-
1225
- r,g,b = self.colors[locx, locy]
1226
- logging.info('color: {} - {} - {}'.format(r,g,b))
1233
+ # r,g,b = self.colors[locx, locy]
1234
+ # logging.info('color: {} - {} - {}'.format(r,g,b))
1227
1235
 
1228
1236
  self.drawposition = not self.drawposition
1229
1237
 
1230
1238
  curarray = self.arrays[list(self.arrays.keys())[int(idx)-1]]
1231
- i = int(x / curarray.dx)
1232
- j = int(y / curarray.dy)
1233
- z = curarray.ztexture[i, j]
1234
- xyz = self.mvp_glm * vec4(x, y, z, 1.)
1239
+ i = int(x)
1240
+ j = int(y)
1241
+
1242
+ if i > 0 and i < curarray.ztexture.shape[0] and j > 0 and j < curarray.ztexture.shape[1]:
1243
+ z = curarray.ztexture[i, j]
1235
1244
 
1236
- self.textTodraw.append(Text_Image_Texture('{z:.3f}', self.parent, Text_Infos(Font_Priority.FONTSIZE, colour=(255,255,255,255)), None, x, y))
1245
+ logging.info('coords: {} - {} - {}'.format(x,y,z))
1237
1246
 
1238
- self.Refresh()
1247
+ # xyz = self.mvp_glm * vec4(x, y, z, 1.)
1248
+
1249
+ # self.textTodraw.append(Text_Image_Texture('{z:.3f}', self.parent, Text_Infos(Font_Priority.FONTSIZE, colour=(255,255,255,255)), None, x, y))
1250
+
1251
+ # self.Refresh()
1239
1252
 
1240
1253
  def OnRightUp(self, event:wx.MouseEvent):
1241
1254
  """ Called when the right mouse button is released."""
@@ -1702,10 +1715,10 @@ class CanvasOGL(glcanvas.GLCanvas):
1702
1715
 
1703
1716
  glFinish()
1704
1717
 
1705
- glBindTexture(GL_TEXTURE_2D, self._textureout)
1706
- self.colors = np.zeros((self.height, self.width, 3), dtype=np.uint8)
1707
- glGetTexImage(GL_TEXTURE_2D, 0, GL_RGB, GL_UNSIGNED_BYTE, self.colors, np.uint8)
1708
- self.colors = self.colors.swapaxes(0, 1)
1718
+ # glBindTexture(GL_TEXTURE_2D, self._textureout)
1719
+ # self.colors = np.zeros((self.height, self.width, 3), dtype=np.uint8)
1720
+ # glGetTexImage(GL_TEXTURE_2D, 0, GL_RGB, GL_UNSIGNED_BYTE, self.colors, np.uint8)
1721
+ # self.colors = self.colors.swapaxes(0, 1)
1709
1722
 
1710
1723
  glBindTexture(GL_TEXTURE_2D, self._posout)
1711
1724
  self.picker = np.zeros((self.height, self.width, 4), dtype=np.float32)
@@ -1754,6 +1767,8 @@ class Wolf_Viewer3D(wx.Frame):
1754
1767
 
1755
1768
  super(Wolf_Viewer3D, self).__init__(parent, title=title, size=(640, 480))
1756
1769
  self.canvas = CanvasOGL(self)
1770
+ self.sx = 1.
1771
+ self.sy = 1.
1757
1772
  self.Show()
1758
1773
 
1759
1774
  @property
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
@@ -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 ast
3
13
  import importlib.util
@@ -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 ast
3
13
  import importlib.util
@@ -56,7 +56,8 @@ float get_value(sampler2DRect tex, vec2 pos) {
56
56
  float posx = (pos.x - origx) / dx;
57
57
  float posy = (pos.y - origy) / dy;
58
58
 
59
- vec2 texCoord = vec2(posx, posy);
59
+ //vec2 texCoord = vec2(posx, posy);
60
+ vec2 texCoord = vec2(posy, posx);
60
61
 
61
62
  float zValue = texture(tex, texCoord).r * zScale;
62
63
  return zValue;
wolfhece/textpillow.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 exists, join, realpath, dirname
2
12
  from queue import PriorityQueue
3
13
  from PIL import Image,ImageDraw,ImageFont
wolfhece/tools_mpl.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 matplotlib.figure import Figure
3
13
  from matplotlib.axes import Axes
4
14
 
@@ -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 logging
3
13