fimeval 0.1.50__tar.gz → 0.1.51__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.
- {fimeval-0.1.50 → fimeval-0.1.51}/PKG-INFO +1 -1
- {fimeval-0.1.50 → fimeval-0.1.51}/pyproject.toml +1 -1
- {fimeval-0.1.50 → fimeval-0.1.51}/src/fimeval/BuildingFootprint/evaluationwithBF.py +6 -0
- {fimeval-0.1.50 → fimeval-0.1.51}/src/fimeval/ContingencyMap/evaluationFIM.py +0 -3
- {fimeval-0.1.50 → fimeval-0.1.51}/src/fimeval/ContingencyMap/fix_permissions.sh +3 -0
- {fimeval-0.1.50 → fimeval-0.1.51}/LICENSE.txt +0 -0
- {fimeval-0.1.50 → fimeval-0.1.51}/README.md +0 -0
- {fimeval-0.1.50 → fimeval-0.1.51}/src/fimeval/BuildingFootprint/__init__.py +0 -0
- {fimeval-0.1.50 → fimeval-0.1.51}/src/fimeval/ContingencyMap/PWBs3.py +0 -0
- {fimeval-0.1.50 → fimeval-0.1.51}/src/fimeval/ContingencyMap/__init__.py +0 -0
- {fimeval-0.1.50 → fimeval-0.1.51}/src/fimeval/ContingencyMap/methods.py +0 -0
- {fimeval-0.1.50 → fimeval-0.1.51}/src/fimeval/ContingencyMap/metrics.py +0 -0
- {fimeval-0.1.50 → fimeval-0.1.51}/src/fimeval/ContingencyMap/plotevaluationmetrics.py +0 -0
- {fimeval-0.1.50 → fimeval-0.1.51}/src/fimeval/ContingencyMap/printcontingency.py +0 -0
- {fimeval-0.1.50 → fimeval-0.1.51}/src/fimeval/__init__.py +0 -0
- {fimeval-0.1.50 → fimeval-0.1.51}/src/fimeval/utilis.py +0 -0
|
@@ -85,6 +85,7 @@ def GetFloodedBuildingCountInfo(
|
|
|
85
85
|
if "bm" in str(raster1_path).lower():
|
|
86
86
|
count_centroids_in_raster(raster1_path, "Benchmark")
|
|
87
87
|
count_centroids_in_raster(raster2_path, "Candidate")
|
|
88
|
+
|
|
88
89
|
elif "candidate" in str(raster2_path).lower():
|
|
89
90
|
count_centroids_in_raster(raster1_path, "Candidate")
|
|
90
91
|
count_centroids_in_raster(raster2_path, "Benchmark")
|
|
@@ -105,6 +106,9 @@ def GetFloodedBuildingCountInfo(
|
|
|
105
106
|
CSI = TP / (TP + FP + FN) if (TP + FP + FN) > 0 else 0
|
|
106
107
|
FAR = FP / (TP + FP) if (TP + FP) > 0 else 0
|
|
107
108
|
POD = TP / (TP + FN) if (TP + FN) > 0 else 0
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
BDR = (centroid_counts["Candidate"]- centroid_counts["Benchmark"])/centroid_counts["Benchmark"]
|
|
108
112
|
|
|
109
113
|
counts_data = {
|
|
110
114
|
"Category": [
|
|
@@ -116,6 +120,7 @@ def GetFloodedBuildingCountInfo(
|
|
|
116
120
|
"CSI",
|
|
117
121
|
"FAR",
|
|
118
122
|
"POD",
|
|
123
|
+
"Building Deviation Ratio",
|
|
119
124
|
],
|
|
120
125
|
"Building Count": [
|
|
121
126
|
centroid_counts["Candidate"],
|
|
@@ -126,6 +131,7 @@ def GetFloodedBuildingCountInfo(
|
|
|
126
131
|
f"{CSI:.3f}",
|
|
127
132
|
f"{FAR:.3f}",
|
|
128
133
|
f"{POD:.3f}",
|
|
134
|
+
f"{BDR:.3f}",
|
|
129
135
|
],
|
|
130
136
|
}
|
|
131
137
|
|
|
@@ -75,9 +75,6 @@ def evaluateFIM(
|
|
|
75
75
|
# Save the smallest extent boundary and cliped FIMS
|
|
76
76
|
save_dir = os.path.join(output_dir, os.path.basename(folder), f"{method.__name__}")
|
|
77
77
|
os.makedirs(save_dir, exist_ok=True)
|
|
78
|
-
|
|
79
|
-
#Give the permission to the output directory
|
|
80
|
-
fix_permissions(save_dir)
|
|
81
78
|
|
|
82
79
|
# Get the smallest matched raster extent and make a boundary shapefile
|
|
83
80
|
smallest_raster_path = get_smallest_raster_path(benchmark_path, *candidate_paths)
|
|
@@ -6,13 +6,16 @@ if [ -z "$DIR" ]; then
|
|
|
6
6
|
echo "No directory provided."
|
|
7
7
|
exit 1
|
|
8
8
|
fi
|
|
9
|
+
echo "Fixing permissions for: $DIR"
|
|
9
10
|
|
|
10
11
|
UNAME=$(uname)
|
|
11
12
|
if [[ "$UNAME" == "Darwin" || "$UNAME" == "Linux" ]]; then
|
|
12
13
|
chmod -R u+rwX "$DIR"
|
|
14
|
+
echo "Permissions granted for user (u+rwX)"
|
|
13
15
|
|
|
14
16
|
elif [[ "$UNAME" == *"MINGW"* || "$UNAME" == *"MSYS"* || "$UNAME" == *"CYGWIN"* ]]; then
|
|
15
17
|
icacls "$DIR" /grant Everyone:F /T > /dev/null
|
|
18
|
+
echo "Permissions granted for working folder"
|
|
16
19
|
|
|
17
20
|
else
|
|
18
21
|
echo "Unsupported OS: $UNAME"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|