fimeval 0.1.43__py3-none-any.whl → 0.1.44__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.
@@ -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(
@@ -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
@@ -2,14 +2,14 @@ fimeval/BuildingFootprint/__init__.py,sha256=oP9YWLdo6ANzSQFxYLv7Ku_26AY5NkLNhZL
2
2
  fimeval/BuildingFootprint/evaluationwithBF.py,sha256=59XxVlMLD7Lj7iXirWZpz1p6eDwHOai26Kap7nyDEEQ,14520
3
3
  fimeval/ContingencyMap/PWBs3.py,sha256=YAg03jzdplYIstG-pZM1MECse7gYjWrJNKAopjgt3uk,1294
4
4
  fimeval/ContingencyMap/__init__.py,sha256=ckps2dyg6aci3TA-3P7oTMcCAcSTz9AA6sndHtZEwdE,259
5
- fimeval/ContingencyMap/evaluationFIM.py,sha256=EBXq8f0iJmkQUveO2ak9OS2p_reIq5Xs-Yzg0GlPih8,15670
5
+ fimeval/ContingencyMap/evaluationFIM.py,sha256=cTfVzcV4sVu3n6wZF4NjhSPHzqhrrEbV02cfqkC39Kk,15669
6
6
  fimeval/ContingencyMap/methods.py,sha256=kbutfo9FUH-yjvnOXxwLpdErUuebMJ8NjCroNWIYCjo,3299
7
7
  fimeval/ContingencyMap/metrics.py,sha256=xVOgcgjDX1hGDPQgLaUCiBtuwH-smXELo5vOKhrujZc,1000
8
8
  fimeval/ContingencyMap/plotevaluationmetrics.py,sha256=3bKfPKZnMR39dA3teDVpQBeTFKnF9v_2Vku0JNVGggs,3921
9
- fimeval/ContingencyMap/printcontingency.py,sha256=7fxErPRS7JiUb2SZ6sIPY2mzdpo9QWQHpOgLx47Vge0,5416
9
+ fimeval/ContingencyMap/printcontingency.py,sha256=u46MF2DEo6Kt1w7Xks6BoW1fOO4byy8B0g7RVWYWhkY,5399
10
10
  fimeval/__init__.py,sha256=kN114EvzG_BFjd65fKWXg29TqaWvR173EdCN3yj30oc,433
11
11
  fimeval/utilis.py,sha256=7S4ef_6rVKKZ1rrCe2ewxuNHapDJmtBcv_1jflteVUw,7386
12
- fimeval-0.1.43.dist-info/LICENSE.txt,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
13
- fimeval-0.1.43.dist-info/METADATA,sha256=ElxEv_WU4dX2rbpmprIyFY6v-pEArmdw3PEdb9ip6zE,14848
14
- fimeval-0.1.43.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
15
- fimeval-0.1.43.dist-info/RECORD,,
12
+ fimeval-0.1.44.dist-info/LICENSE.txt,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
13
+ fimeval-0.1.44.dist-info/METADATA,sha256=1RsMsX0StXpzxiZpLY84k3jTjY0LnoQQrJIFyTUNDPE,14848
14
+ fimeval-0.1.44.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
15
+ fimeval-0.1.44.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.2
2
+ Generator: poetry-core 1.9.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any