Skip to content

Commit

Permalink
Fix to large_initialize display option.
Browse files Browse the repository at this point in the history
  • Loading branch information
KieranRatcliffeInvertedAI committed Jun 20, 2024
1 parent ebc0190 commit d71d752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invertedai/large/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def get_number_of_agents_per_region_by_drivable_area(
desc=f"Calculating drivable surface areas"
)
else:
iterable_regions = new_regions
iterable_regions = enumerate(new_regions)

for i, region in iterable_regions:
center_tuple = (region.center.x, region.center.y)
Expand Down Expand Up @@ -312,7 +312,7 @@ def inside_fov(center: Point, agent_scope_fov: float, point: Point) -> bool:
desc=f"Initializing regions"
)
else:
iterable_regions = regions
iterable_regions = enumerate(regions)

num_attempts = 1 + len(regions) // ATTEMPT_PER_NUM_REGIONS
all_responses = []
Expand Down

0 comments on commit d71d752

Please sign in to comment.