wolfhece 2.1.120__py3-none-any.whl → 2.1.121__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/PyDraw.py +4 -3
- wolfhece/acceptability/acceptability.py +17 -13
- wolfhece/acceptability/acceptability_gui.py +517 -526
- wolfhece/acceptability/func.py +46 -58
- wolfhece/apps/version.py +1 -1
- wolfhece/wolfresults_2D.py +9 -6
- {wolfhece-2.1.120.dist-info → wolfhece-2.1.121.dist-info}/METADATA +1 -1
- {wolfhece-2.1.120.dist-info → wolfhece-2.1.121.dist-info}/RECORD +11 -11
- {wolfhece-2.1.120.dist-info → wolfhece-2.1.121.dist-info}/WHEEL +0 -0
- {wolfhece-2.1.120.dist-info → wolfhece-2.1.121.dist-info}/entry_points.txt +0 -0
- {wolfhece-2.1.120.dist-info → wolfhece-2.1.121.dist-info}/top_level.txt +0 -0
wolfhece/PyDraw.py
CHANGED
@@ -6882,6 +6882,7 @@ class WolfMapViewer(wx.Frame):
|
|
6882
6882
|
begin = choice_bes.begin
|
6883
6883
|
end = choice_bes.end
|
6884
6884
|
interval = choice_bes.step
|
6885
|
+
all = choice_bes.check_all
|
6885
6886
|
|
6886
6887
|
finally:
|
6887
6888
|
choice_bes.Destroy()
|
@@ -6890,7 +6891,7 @@ class WolfMapViewer(wx.Frame):
|
|
6890
6891
|
logging.info(_('No interval chosen - Aborting !'))
|
6891
6892
|
return
|
6892
6893
|
|
6893
|
-
ret = self.active_res2d.export_some_values_to_csv(all_selected, which, filename, for_steps= (begin-1, end-1, interval))
|
6894
|
+
ret = self.active_res2d.export_some_values_to_csv(all_selected, which, filename, for_steps= (begin-1, end-1, interval), all_values=all)
|
6894
6895
|
|
6895
6896
|
if not ret:
|
6896
6897
|
logging.error(_('Error in exporting values !'))
|
@@ -6989,7 +6990,7 @@ class WolfMapViewer(wx.Frame):
|
|
6989
6990
|
logging.info(_('No interval chosen - Aborting !'))
|
6990
6991
|
return
|
6991
6992
|
|
6992
|
-
ret = self.active_res2d.export_some_values_to_csv(self.active_vector, which, filename=filename, for_steps= (begin-1, end-1, interval))
|
6993
|
+
ret = self.active_res2d.export_some_values_to_csv(self.active_vector, which, filename=filename, for_steps= (begin-1, end-1, interval), all_values=all)
|
6993
6994
|
|
6994
6995
|
elif itemlabel == _("Plot stats unknown (inside active zone)..."):
|
6995
6996
|
|
@@ -7102,7 +7103,7 @@ class WolfMapViewer(wx.Frame):
|
|
7102
7103
|
|
7103
7104
|
|
7104
7105
|
for idx, (curvect, name) in enumerate(zip(self.active_zone.myvectors, unique_name)):
|
7105
|
-
self.active_res2d.export_some_values_to_csv(curvect, which, filename=directory / name, for_steps= (begin-1, end-1, interval))
|
7106
|
+
self.active_res2d.export_some_values_to_csv(curvect, which, filename=directory / name, for_steps= (begin-1, end-1, interval), all_values=all)
|
7106
7107
|
|
7107
7108
|
elif itemlabel == _("Plot active vector..."):
|
7108
7109
|
""" Plot data along active vector """
|
@@ -566,26 +566,30 @@ def Acceptability(main_dir:str = 'Vesdre',
|
|
566
566
|
|
567
567
|
comb += part_accept[curT] * float(pond["Ponderation"][curT])
|
568
568
|
|
569
|
-
y_pixels, x_pixels = comb.shape
|
569
|
+
y_pixels, x_pixels = comb.shape
|
570
570
|
|
571
|
-
# Set up output GeoTIFF
|
572
571
|
driver = gdal.GetDriverByName('GTiff')
|
573
|
-
|
574
|
-
dataset = driver.Create(
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
572
|
+
|
573
|
+
dataset = driver.Create(
|
574
|
+
str(saveA),
|
575
|
+
x_pixels, y_pixels,
|
576
|
+
1,
|
577
|
+
gdal.GDT_Float32,
|
578
|
+
options=["COMPRESS=LZW"]
|
579
|
+
)
|
579
580
|
|
580
581
|
assert comb.dtype == np.float32, "The dtype of the combined acceptability matrix is not np.float32"
|
581
582
|
|
582
|
-
dataset.GetRasterBand(1).WriteArray(comb)
|
583
583
|
dataset.SetGeoTransform(geotrans)
|
584
584
|
dataset.SetProjection(proj)
|
585
|
-
dataset.
|
586
|
-
|
587
|
-
|
588
|
-
|
585
|
+
band = dataset.GetRasterBand(1)
|
586
|
+
band.WriteArray(comb)
|
587
|
+
band.FlushCache()
|
588
|
+
dataset.SetGeoTransform(geotrans)
|
589
|
+
dataset.SetProjection(proj)
|
590
|
+
dataset = None
|
591
|
+
|
592
|
+
done.append(steps_acceptability.COMPUTE_MEAN_ACCEPT)
|
589
593
|
|
590
594
|
if 6 in steps or steps_acceptability.RESAMPLING in steps:
|
591
595
|
if os.path.exists(manager.OUT_ACCEPT):
|