Skip to content

Commit

Permalink
Call the correct function.
Browse files Browse the repository at this point in the history
  • Loading branch information
romulogoncalves committed Mar 27, 2018
1 parent dfc7684 commit 24a2a92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions laserchicken/compute_neighbors.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,13 @@ def compute_neighborhoods_(env_pc, target_pc, volume_description):
"""
volume_type = volume_description.get_type()
if volume_type == Sphere.TYPE:
compute_neighborhoods = compute_sphere_neighborhood(env_pc, target_pc, volume_description.radius)
compute_neighborhoods = compute_sphere_neighborhood_(env_pc, target_pc, volume_description.radius)
elif volume_type == InfiniteCylinder.TYPE:
compute_neighborhoods = compute_cylinder_neighborhood(env_pc, target_pc, volume_description.radius)
compute_neighborhoods = compute_cylinder_neighborhood_(env_pc, target_pc, volume_description.radius)
else:
raise ValueError('Neighborhood computation error because volume type "{}" is unknown.'.format(volume_type))
for x in compute_neighborhoods:
yield x
raise ValueError('Neighborhood computation error because volume type "{}" is unknown.'.format(volume_type))


def compute_neighborhoods(env_pc, target_pc, volume_description):
Expand Down

0 comments on commit 24a2a92

Please sign in to comment.