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
wolfhece/GraphNotebook.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 cmath import isnan
2
12
  import numpy as np
3
13
  import wx
wolfhece/GraphProfile.py CHANGED
@@ -1,12 +1,22 @@
1
1
  # Librairies
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 cmath import isnan
3
13
  import numpy as np
4
14
  import wx
5
15
  import wx.lib.agw.aui as aui
6
16
  import copy
7
17
  from shapely.geometry import LineString,Point
8
- from matplotlib import figure as mplfig
9
- from matplotlib import axes as mplax
18
+ from matplotlib.figure import Figure
19
+ from matplotlib.axis import Axis
10
20
  import matplotlib.pyplot as plt
11
21
  from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas, NavigationToolbar2WxAgg as NavigationToolbar
12
22
  from wx.grid import Grid
@@ -27,7 +37,7 @@ class ProfilePanel(wx.Panel):
27
37
  """
28
38
  A wx.panel on which the matplolib figure is displayed.
29
39
  """
30
- figure: mplfig.Figure
40
+ figure: Figure
31
41
 
32
42
  def __init__(self, parent, id =-1, dpi= None, toolbar = True, **kwargs):
33
43
 
@@ -37,7 +47,7 @@ class ProfilePanel(wx.Panel):
37
47
 
38
48
  #Figure
39
49
  if self.wx_exists:
40
- self.figure = mplfig.Figure(dpi = dpi, figsize=(8,4))
50
+ self.figure = Figure(dpi = dpi, figsize=(8,4))
41
51
  else:
42
52
  self.figure = plt.figure(dpi = dpi, figsize=(15,10)) # FIXME not exactly the same than mplfig.Figure, probably rendering machine
43
53
 
@@ -87,7 +97,7 @@ class ProfilePanel(wx.Panel):
87
97
 
88
98
  return self.ax_cs_real, self.ax_img, self.ax_dis, self.ax_hsw
89
99
 
90
- def get_fig_ax(self) -> list((mplfig.Figure, mplax, mplax, mplax, mplax, mplax)):
100
+ def get_fig_ax(self) -> tuple[Figure, Axis, Axis, Axis, Axis, Axis]:
91
101
  """
92
102
  This method returns the active axes of the matplotlib figure.
93
103
  """
@@ -959,7 +969,7 @@ class PlotCSAll(ProfilePanel):
959
969
  self.plot_hspw()
960
970
  self.plot_cs()
961
971
 
962
- def plot_profile(self, figax:tuple([mplfig.Figure, mplax.Axes]) = None):
972
+ def plot_profile(self, figax:tuple[Figure, Axis] = None):
963
973
  """
964
974
  This method plots the geometric profiles on the first and third graph.
965
975
  The third graph is anamorphosed to allow comparisons with other graphs using the same scale.
@@ -1029,7 +1039,7 @@ class PlotCSAll(ProfilePanel):
1029
1039
  if self.wx_exists:
1030
1040
  leg4.set_draggable(True)
1031
1041
 
1032
- def plot_discharge(self, figax:tuple([mplfig.Figure, mplax.Axes]) = None):
1042
+ def plot_discharge(self, figax:tuple[Figure, Axis] = None):
1033
1043
  """
1034
1044
  This method plots the discharge relationships of the active profile on the 5th axis of the matplotlib figure.
1035
1045
  """
@@ -1059,7 +1069,7 @@ class PlotCSAll(ProfilePanel):
1059
1069
  if self.wx_exists:
1060
1070
  leg5.set_draggable(True)
1061
1071
 
1062
- def plot_hspw(self, figax:tuple([mplfig.Figure, mplax.Axes]) = None):
1072
+ def plot_hspw(self, figax:tuple[Figure, Axis] = None):
1063
1073
  """
1064
1074
  The methods plots the hydraulic radius - H, the wetted area - S, the wetted perimeter - P and top width - W on sixth axis and last graph of the figure.
1065
1075
  """
wolfhece/Lidar2002.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 normpath,exists,join,basename
3
13
  from os import listdir,scandir
4
14
  import numpy as np
wolfhece/ManageParams.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
 
3
13
  from .PyTranslate import _
wolfhece/Model1D.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
  # --- Librairies ---
2
12
  # __________________
3
13
 
wolfhece/PyConfig.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 os
2
12
  import json
3
13
  from enum import Enum
@@ -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
  from numpy import asarray,ndarray,arange,zeros,linspace,concatenate,unique,amin,amax
2
12
  import math
3
13
  import matplotlib.pyplot as plt
wolfhece/PyDraw.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 numpy as np
2
12
  from wx import dataview, TreeCtrl
3
13
  import wx
@@ -7712,61 +7722,62 @@ class WolfMapViewer(wx.Frame):
7712
7722
  try:
7713
7723
  val = locarray.get_value(x, y)
7714
7724
 
7715
- if locarray.wolftype in WOLF_ARRAY_MB:
7716
- i, j, curbloc = locarray.get_blockij_from_xy(x, y)
7717
- curpar = 'Indices (i;j;bloc) (1-based)'
7718
-
7719
- self.mytooltip.add_param(groupname = locarray.idx,
7720
- name = curpar,
7721
- value = '(' + str(i+1) + ';' + str(j+1) + ';' + str(curbloc) + ')',
7725
+ if val != -99999.:
7726
+ if locarray.wolftype in WOLF_ARRAY_MB:
7727
+ i, j, curbloc = locarray.get_blockij_from_xy(x, y)
7728
+ curpar = 'Indices (i;j;bloc) (1-based)'
7729
+
7730
+ self.mytooltip.add_param(groupname = locarray.idx,
7731
+ name = curpar,
7732
+ value = '(' + str(i+1) + ';' + str(j+1) + ';' + str(curbloc) + ')',
7733
+ type = Type_Param.String,
7734
+ comment = '')
7735
+
7736
+ else:
7737
+ i, j = locarray.get_ij_from_xy(x, y)
7738
+ curpar = 'Indices (i;j) (1-based)'
7739
+
7740
+ self.mytooltip.add_param(groupname = locarray.idx,
7741
+ name = curpar,
7742
+ value = '(' + str(i+1) + ';' + str(j+1) + ')',
7743
+ type = Type_Param.String,
7744
+ comment = '')
7745
+
7746
+ curpar = 'Value'
7747
+
7748
+ if val is np.nan:
7749
+ self.mytooltip.add_param(groupname = locarray.idx,
7750
+ name = 'Value',
7751
+ value = "Nan",
7722
7752
  type = Type_Param.String,
7723
7753
  comment = '')
7724
7754
 
7725
- else:
7726
- i, j = locarray.get_ij_from_xy(x, y)
7727
- curpar = 'Indices (i;j) (1-based)'
7755
+ elif np.ma.is_masked(val):
7728
7756
 
7729
- self.mytooltip.add_param(groupname = locarray.idx,
7730
- name = curpar,
7731
- value = '(' + str(i+1) + ';' + str(j+1) + ')',
7757
+ self.mytooltip.add_param(groupname = locarray.idx,
7758
+ name = 'Value',
7759
+ value = "Masked",
7732
7760
  type = Type_Param.String,
7733
7761
  comment = '')
7734
7762
 
7735
- curpar = 'Value'
7736
-
7737
- if val is np.nan:
7738
- self.mytooltip.add_param(groupname = locarray.idx,
7739
- name = 'Value',
7740
- value = "Nan",
7741
- type = Type_Param.String,
7742
- comment = '')
7743
-
7744
- elif np.ma.is_masked(val):
7745
-
7746
- self.mytooltip.add_param(groupname = locarray.idx,
7747
- name = 'Value',
7748
- value = "Masked",
7749
- type = Type_Param.String,
7750
- comment = '')
7751
-
7752
- elif isinstance(val, str):
7753
- self.mytooltip.add_param(groupname = locarray.idx,
7754
- name = curpar,
7755
- value = val,
7756
- type = Type_Param.String,
7757
- comment = '')
7758
- elif isinstance(val, int):
7759
- self.mytooltip.add_param(groupname = locarray.idx,
7760
- name = curpar,
7761
- value = int(val),
7762
- type = Type_Param.Integer,
7763
- comment = '')
7764
- else:
7765
- self.mytooltip.add_param(groupname = locarray.idx,
7766
- name = curpar,
7767
- value = float(val),
7768
- type = Type_Param.Float,
7769
- comment = '')
7763
+ elif isinstance(val, str):
7764
+ self.mytooltip.add_param(groupname = locarray.idx,
7765
+ name = curpar,
7766
+ value = val,
7767
+ type = Type_Param.String,
7768
+ comment = '')
7769
+ elif isinstance(val, int):
7770
+ self.mytooltip.add_param(groupname = locarray.idx,
7771
+ name = curpar,
7772
+ value = int(val),
7773
+ type = Type_Param.Integer,
7774
+ comment = '')
7775
+ else:
7776
+ self.mytooltip.add_param(groupname = locarray.idx,
7777
+ name = curpar,
7778
+ value = float(val),
7779
+ type = Type_Param.Float,
7780
+ comment = '')
7770
7781
  except:
7771
7782
  logging.warning(_('Error in linked frame -- Please check !'))
7772
7783
 
wolfhece/PyGui.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 import scandir, getcwd, makedirs
2
12
  from os.path import exists, join, isdir, isfile, dirname, normpath, splitext
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 wx
2
12
 
3
13
  from .PyTranslate import _
wolfhece/PyHydrographs.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
  # Libraries
2
12
  import copy
3
13
  import enum
wolfhece/PyPalette.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 matplotlib.cm import ScalarMappable
2
12
  from matplotlib.figure import Figure
3
13
  from matplotlib.transforms import Bbox
wolfhece/PyParams.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
  import wx.propgrid as pg
3
13
  import pandas as pd
wolfhece/PyPictures.py CHANGED
@@ -1,4 +1,14 @@
1
1
  # from PIL import Image,ExifTags
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
  import os.path as path
3
13
  from os import curdir, listdir
4
14
  from exif import Image
wolfhece/PyVertex.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 numpy as np
2
12
  import sys
3
13
  try:
@@ -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
  from os import path
2
12
  from typing import Union
3
13
  import numpy as np
wolfhece/PyWMS.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 owslib.wms import WebMapService
2
12
  from PIL import Image
3
13
  from io import BytesIO
wolfhece/RatingCurve.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 datetime import datetime as dt # Gestion de dates et heures
2
12
  from zoneinfo import ZoneInfo # Gestion de fuseaux horaires
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 numpy as np
2
12
  import matplotlib.pyplot as plt
3
13
  from matplotlib.axes import Axes
wolfhece/ReadDataDCENN.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 pandas as pd
2
12
  import os
3
13
  from datetime import datetime as dt
wolfhece/Results2DGPU.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 numpy as np
2
12
  import numpy.ma as ma
3
13
  from os import path
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: University of Liege, HECE, LEMA
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 .func import clip_layer, data_modification, vector_to_raster, compute_vulnerability, match_vulnerability2sim, compute_acceptability, shp_to_raster, Accept_Manager
2
12
  import geopandas as gpd
3
13
  import multiprocessing
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: University of Liege, HECE, LEMA
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 .Parallels import parallel_gpd_clip, parallel_v2r, parallel_datamod
2
12
  from .func import data_modification, compute_vulnerability, compute_vulnerability4scenario
3
13
  from .func import match_vulnerability2sim, compute_acceptability, shp_to_raster, clip_layer
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: University of Liege, HECE
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 .acceptability import Base_data_creation, Database_to_raster, Vulnerability, Acceptability
2
12
  from .func import Accept_Manager
3
13
 
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: University of Liege, HECE, LEMA
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
  The command-line interface for the acceptability
3
13
  """
@@ -1,3 +1,13 @@
1
+ """
2
+ Author: University of Liege, HECE, LEMA
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
  import pandas as pd
3
13
  import numpy as np
@@ -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
 
3
13
  from ..PyTranslate 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 wx
2
12
 
3
13
  from ..PyTranslate import _
@@ -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
  def main():
3
13
  # Check if installation is complete
4
14
  ret = 'Checking installation\n---------------------\n\n'
@@ -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 ..PyTranslate import _
2
12
 
3
13
  import wx
@@ -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 ..PyTranslate import _
3
13
 
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
  """
2
12
  This is a minimal wxPython SplashScreen
3
13
  """