Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a8ccb30

Browse files
ad71antmarakis
authored andcommitted
Minor formatting issues (aimacode#832)
1 parent 1ba1aed commit a8ccb30

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

planning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def goal_test(kb, goals):
524524
if solution:
525525
return solution
526526
graphplan.graph.expand_graph()
527-
if len(graphplan.graph.levels)>=2 and graphplan.check_leveloff():
527+
if len(graphplan.graph.levels) >=2 and graphplan.check_leveloff():
528528
return None
529529

530530

probability.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ def particle_filtering(e, N, HMM):
653653
# _________________________________________________________________________
654654
## TODO: Implement continuous map for MonteCarlo similar to Fig25.10 from the book
655655

656+
656657
class MCLmap:
657658
"""Map which provides probability distributions and sensor readings.
658659
Consists of discrete cells which are either an obstacle or empty"""
@@ -679,7 +680,7 @@ def ray_cast(self, sensor_num, kin_state):
679680
# 0
680681
# 3R1
681682
# 2
682-
delta = ((sensor_num%2 == 0)*(sensor_num - 1), (sensor_num%2 == 1)*(2 - sensor_num))
683+
delta = ((sensor_num % 2 == 0)*(sensor_num - 1), (sensor_num % 2 == 1)*(2 - sensor_num))
683684
# sensor direction changes based on orientation
684685
for _ in range(orient):
685686
delta = (delta[1], -delta[0])

0 commit comments

Comments
 (0)