fimeval 0.1.43__tar.gz → 0.1.44__tar.gz

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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.1
2
2
  Name: fimeval
3
- Version: 0.1.43
3
+ Version: 0.1.44
4
4
  Summary: A Framework for Automatic Evaluation of Flood Inundation Mapping Predictions Evaluation
5
5
  License: GPLv3
6
6
  Author: Surface Dynamics Modeling Lab
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "fimeval"
3
- version = "0.1.43"
3
+ version = "0.1.44"
4
4
  description = "A Framework for Automatic Evaluation of Flood Inundation Mapping Predictions Evaluation"
5
5
  authors = [
6
6
  "Surface Dynamics Modeling Lab",
@@ -226,7 +226,7 @@ def evaluateFIM(
226
226
  extract_c = np.where(mask2, out_image2, 0)
227
227
  extract_c = np.where(extract_c > 0, 1, 0)
228
228
  idx_pwc = np.where(extract_c == 1)
229
- out_image2[idx_pwc] = -1
229
+ out_image2[idx_pwc] = 5
230
230
  out_image2_resized = resize_image(
231
231
  out_image2,
232
232
  out_transform2,
@@ -18,7 +18,7 @@ def getContingencyMap(raster_path, method_path):
18
18
  combined_flood = np.full_like(band1, fill_value=1, dtype=int)
19
19
 
20
20
  # Map pixel values to colors
21
- combined_flood[band1 == -1] = 0
21
+ combined_flood[band1 == 5] = 0
22
22
  combined_flood[band1 == 0] = 1
23
23
  combined_flood[band1 == 1] = 2
24
24
  combined_flood[band1 == 2] = 3
@@ -60,12 +60,11 @@ def getContingencyMap(raster_path, method_path):
60
60
 
61
61
  # Create legend patches
62
62
  value_labels = {
63
- 0: "Permanent Water",
64
- 1: "No Data",
65
- 2: "True Negative",
66
- 3: "False Positive",
67
- 4: "False Negative",
68
- 5: "True Positive",
63
+ 1: "True negative",
64
+ 2: "False positive",
65
+ 3: "False negative",
66
+ 4: "True positive",
67
+ 5: "Permanent water bodies"
69
68
  }
70
69
  legend_patches = [
71
70
  Patch(
File without changes
File without changes
File without changes