Skip to content

Commit 034d3a7

Browse files
authored
Update Palantir-Terrain-Classification.py
1 parent 5b594ed commit 034d3a7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

other/Palantir-Terrain-Classification.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ def detect_cliff(elevations, features):
6060
intial_height = elevations[row][col]
6161
while row < len(elevations) - 1:
6262
while col < len(elevations[row]) - 1:
63-
if features[row][col] != "W" and features[row][col] != "T":
64-
if abs(intial_height - elevations[row][col + 1]) <= 10:
65-
#if features[row][col + 1] != "W" and features[row][col + 1] != "T":
66-
return True
67-
if abs(intial_height - elevations[row + 1][col + 1]) <= 10:
68-
#if features[row + 1][col + 1] != "W" and features[row + 1][col + 1] != "T":
69-
return True
70-
if abs(intial_height - elevations[row + 1][col]) <= 10:
71-
#if features[row + 1][col] != "W" and features[row + 1][col + 1] != "T":
72-
return True
63+
#if features[row][col] != "W" and features[row][col] != "T":
64+
if abs(intial_height - elevations[row][col + 1]) <= 10:
65+
#if features[row][col + 1] != "W" and features[row][col + 1] != "T":
66+
return True
67+
if abs(intial_height - elevations[row + 1][col + 1]) <= 10:
68+
#if features[row + 1][col + 1] != "W" and features[row + 1][col + 1] != "T":
69+
return True
70+
if abs(intial_height - elevations[row + 1][col]) <= 10:
71+
#if features[row + 1][col] != "W" and features[row + 1][col + 1] != "T":
72+
return True
7373
col += 1
7474
row += 1
7575
return False

0 commit comments

Comments
 (0)