wolfhece 2.2.26__py3-none-any.whl → 2.2.27__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 CHANGED
@@ -5,7 +5,7 @@ class WolfVersion():
5
5
 
6
6
  self.major = 2
7
7
  self.minor = 2
8
- self.patch = 26
8
+ self.patch = 27
9
9
 
10
10
  def __str__(self):
11
11
 
wolfhece/report/tools.py CHANGED
@@ -815,30 +815,38 @@ class Analysis_Scenarios():
815
815
  raise ValueError("At least two scenarios are required to compare waterlines.")
816
816
 
817
817
  ref, sim = scenario[0]
818
+
819
+ if isinstance(ref, tuple):
820
+ full_name = ref[1]
818
821
  ref = _sanitize_scenario_name(ref)
819
822
 
820
823
  # plot topography / bed elevation for the reference scenario
821
824
  s, z = self.get_polygon(ref).get_s_values(stored_values_unk.TOPOGRAPHY, which_group=ref, operator=operator, which_sim=sim)
822
825
  fig, ax = plt.subplots(1, 1)
823
- ax.plot(s, z, label=f"{ref} - {_('Bathymetry')}", color='black', linestyle='-', linewidth=2)
826
+ ax.plot(s, z, label=f"{full_name} - {_('Bathymetry')}", color='black', linestyle='-', linewidth=2)
824
827
 
825
828
  # plot water surface elevation for the reference scenario
826
829
  s, z = self.get_polygon(ref).get_s_values(stored_values_unk.WATERLEVEL, which_group=ref, operator=operator, which_sim=sim)
827
- ax.plot(s, z, label=f"{ref} - {sim}", color='blue', linestyle='-', linewidth=2)
830
+ ax.plot(s, z, label=f"{full_name} - {sim}", color='blue', linestyle='-', linewidth=2)
828
831
 
829
832
  # plot topography / bed elevation for the simulation scenarios
830
833
  for cur_scenario in scenario[1:]:
831
834
  scen_name, sim_name = cur_scenario
835
+
836
+ if isinstance(scen_name, tuple):
837
+ full_name = scen_name[1]
832
838
  scen_name = _sanitize_scenario_name(scen_name)
833
839
  s, z = self.get_polygon(scen_name).get_s_values(stored_values_unk.TOPOGRAPHY, which_group=scen_name, operator=operator, which_sim=sim_name)
834
- ax.plot(s, z, label=f"{scen_name} - {_('Bathymetry')}", linestyle='--', linewidth=1.5)
840
+ ax.plot(s, z, label=f"{full_name} - {_('Bathymetry')}", linestyle='--', linewidth=1.5)
835
841
 
836
842
  # plot water surface elevation for the simulation scenarios
837
843
  for cur_scenario in scenario[1:]:
838
844
  scen_name, sim_name = cur_scenario
845
+ if isinstance(scen_name, tuple):
846
+ full_name = scen_name[1]
839
847
  scen_name = _sanitize_scenario_name(scen_name)
840
848
  s, z = self.get_polygon(scen_name).get_s_values(stored_values_unk.WATERLEVEL, which_group=scen_name, operator=operator, which_sim=sim_name)
841
- ax.plot(s, z, label=f"{scen_name} - {sim_name}", linestyle='--', linewidth=1.5)
849
+ ax.plot(s, z, label=f"{full_name} - {sim_name}", linestyle='--', linewidth=1.5)
842
850
 
843
851
  filename = self.directories[Directory_Analysis.IMAGES] / f"{self.name}_{ref}_{str(xmin)}_{str(xmax)}_waterlines_comparison.png"
844
852
 
@@ -963,6 +971,8 @@ class Analysis_Scenarios():
963
971
 
964
972
  if isinstance(scenario, (str, tuple)):
965
973
 
974
+ if isinstance(scenario, tuple):
975
+ full_name = scenario[1]
966
976
  scenario = _sanitize_scenario_name(scenario)
967
977
 
968
978
  fig,ax = plt.subplots(1,1)
@@ -971,7 +981,7 @@ class Analysis_Scenarios():
971
981
  for sim in self.list_sims_in_polygons(scenario):
972
982
  # plot Froude number for the reference scenario
973
983
  s, z = self.get_polygon(scenario).get_s_values(stored_values_unk.FROUDE, which_group=scenario, operator=operator, which_sim=sim)
974
- ax.plot(s, z, label=f"{scenario} - {sim}", linestyle='-', linewidth=1.5)
984
+ ax.plot(s, z, label=f"{sim}", linestyle='-', linewidth=1.5)
975
985
 
976
986
  filename = self.directories[Directory_Analysis.IMAGES] / f"{self.name}_{scenario}_{str(xmin)}_{str(xmax)}_Froude.png"
977
987
 
@@ -985,18 +995,23 @@ class Analysis_Scenarios():
985
995
  fig,ax = plt.subplots(1,1)
986
996
 
987
997
  ref, sim = scenario[0]
998
+
999
+ if isinstance(ref, tuple):
1000
+ full_name = ref[1]
988
1001
  ref = _sanitize_scenario_name(ref)
989
1002
 
990
1003
  # plot water surface elevation for the reference scenario
991
1004
  s, z = self.get_polygon(ref).get_s_values(stored_values_unk.FROUDE, which_group=ref, operator=operator, which_sim=sim)
992
- ax.plot(s, z, label=f"{ref} - {sim}", color='blue', linestyle='-', linewidth=2)
1005
+ ax.plot(s, z, label=f"{full_name} - {sim}", color='blue', linestyle='-', linewidth=2)
993
1006
 
994
1007
  # plot water surface elevation for the simulation scenarios
995
1008
  for cur_scenario in scenario[1:]:
996
1009
  scen_name, sim_name = cur_scenario
1010
+ if isinstance(scen_name, tuple):
1011
+ full_name = scen_name[1]
997
1012
  scen_name = _sanitize_scenario_name(scen_name)
998
1013
  s, z = self.get_polygon(scen_name).get_s_values(stored_values_unk.FROUDE, which_group=scen_name, operator=operator, which_sim=sim_name)
999
- ax.plot(s, z, label=f"{scen_name} - {sim_name}", linestyle='--', linewidth=1.5)
1014
+ ax.plot(s, z, label=f"{full_name} - {sim_name}", linestyle='--', linewidth=1.5)
1000
1015
 
1001
1016
  filename = self.directories[Directory_Analysis.IMAGES] / f"{self.name}_{ref}_{str(xmin)}_{str(xmax)}_Froude_comparison.png"
1002
1017
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wolfhece
3
- Version: 2.2.26
3
+ Version: 2.2.27
4
4
  Author-email: Pierre Archambeau <pierre.archambeau@uliege.be>
5
5
  Project-URL: Homepage, https://uee.uliege.be/hece
6
6
  Project-URL: Issues, https://uee.uliege.be/hece
@@ -88,7 +88,7 @@ wolfhece/apps/curvedigitizer.py,sha256=lEJJwgAfulrrWQc-U6ij6sj59hWN3SZl4Yu1kQxVz
88
88
  wolfhece/apps/hydrometry.py,sha256=lhhJsFeb4zGL4bNQTs0co85OQ_6ssL1Oy0OUJCzhfYE,656
89
89
  wolfhece/apps/isocurrent.py,sha256=dagmGR8ja9QQ1gwz_8fU-N052hIw-W0mWGVkzLu6C7I,4247
90
90
  wolfhece/apps/splashscreen.py,sha256=EdGDN9NhudIiP7c3gVqj7dp4MWFB8ySizM_tpMnsgpE,3091
91
- wolfhece/apps/version.py,sha256=ywl1rGt9d5UlGmLPuCEKV0NQSzDV2Zum80Gbo1pTZqs,388
91
+ wolfhece/apps/version.py,sha256=p-KAUzXKL4OgZzyJi_QLtP77sITe_SMcFQwa7KciYFU,388
92
92
  wolfhece/apps/wolf.py,sha256=mRnjYsUu4KIsRuamdQWAINFMuwN4eJgMo9erG-hkZ70,729
93
93
  wolfhece/apps/wolf2D.py,sha256=4z_OPQ3IgaLtjexjMKX9ppvqEYyjFLt1hcfFABy3-jU,703
94
94
  wolfhece/apps/wolf_logo.bmp,sha256=ruJ4MA51CpGO_AYUp_dB4SWKHelvhOvd7Q8NrVOjDJk,3126
@@ -268,7 +268,7 @@ wolfhece/report/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
268
268
  wolfhece/report/pdf.py,sha256=zrSSY1JPk59FxK9pFWQfhVKIQAoc_wjeTrXO3tSiEHo,1959
269
269
  wolfhece/report/reporting.py,sha256=JUEXovx_S4jpYkJEBU0AC-1Qw2OkkWyV3VAp6iOfSHc,19494
270
270
  wolfhece/report/simplesimgpu.py,sha256=kx9IMCr9afPwv9B3G5ADQfaIuHXuqTkgSjg-5bXVuqo,60738
271
- wolfhece/report/tools.py,sha256=8veLJr-vWmO56Y73c1fowCOum9IAiWYygC7gEZEBeFk,90875
271
+ wolfhece/report/tools.py,sha256=hX57JKcdMgjg-jNDpCRGC82x7ZKpYaqSng7oR3rkDrs,91412
272
272
  wolfhece/report/wolf_report.png,sha256=NoSV58LSwb-oxCcZScRiJno-kxDwRdm_bK-fiMsKJdA,592485
273
273
  wolfhece/scenario/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
274
274
  wolfhece/scenario/check_scenario.py,sha256=d-LWa_FxmPxTSc_H1lDHwqLB6TCqj1IUrRJhatfPMMA,5623
@@ -301,8 +301,8 @@ wolfhece/ui/wolf_multiselection_collapsiblepane.py,sha256=8PlMYrb_8jI8h9F0_EagpM
301
301
  wolfhece/ui/wolf_times_selection_comparison_models.py,sha256=ORy7fz4dcp691qKzaOZHrRLZ0uXNhL-LIHxmpDGL6BI,5007
302
302
  wolfhece/wintab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
303
303
  wolfhece/wintab/wintab.py,sha256=8A-JNONV6ujgsgG3lM5Uw-pVgglPATwKs86oBzzljoc,7179
304
- wolfhece-2.2.26.dist-info/METADATA,sha256=F6COfsHmlgTZoUOckJarKwQJFDwXPD7t0Q6bK66pMgg,2729
305
- wolfhece-2.2.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
306
- wolfhece-2.2.26.dist-info/entry_points.txt,sha256=Jr187pyvA3EeJiQLjZK9yo6mJX7IAn6ygZU9T8qF_gQ,658
307
- wolfhece-2.2.26.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
308
- wolfhece-2.2.26.dist-info/RECORD,,
304
+ wolfhece-2.2.27.dist-info/METADATA,sha256=LyxRqMNvHVs9MaJn8wSaG5KQTVQ6Ixr_dJe237NPjbg,2729
305
+ wolfhece-2.2.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
306
+ wolfhece-2.2.27.dist-info/entry_points.txt,sha256=Jr187pyvA3EeJiQLjZK9yo6mJX7IAn6ygZU9T8qF_gQ,658
307
+ wolfhece-2.2.27.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
308
+ wolfhece-2.2.27.dist-info/RECORD,,