Skip to content

Commit 5b594ed

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

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

other/Palantir-Terrain-Classification.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ def detect_cliff(elevations, features):
6262
while col < len(elevations[row]) - 1:
6363
if features[row][col] != "W" and features[row][col] != "T":
6464
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
65+
#if features[row][col + 1] != "W" and features[row][col + 1] != "T":
66+
return True
6767
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
68+
#if features[row + 1][col + 1] != "W" and features[row + 1][col + 1] != "T":
69+
return True
7070
if abs(intial_height - elevations[row + 1][col]) <= 10:
71-
if features[row + 1][col] != "W" and features[row + 1][col] != "T":
72-
return True
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)