Skip to content

Commit

Permalink
Merge pull request #208 from princeton-vl/bugfix_test_failure
Browse files Browse the repository at this point in the history
Bugfix test failures
  • Loading branch information
araistrick authored Jul 12, 2024
2 parents cd57088 + 2e8df50 commit e692ce8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def angle_alignment_cost_base(
b_edges = []
for b_name, b_mesh in zip(b, b_meshes):
b_poly = iu.project_to_xy_poly(b_mesh)
if b_poly is not None:
if (b_poly is not None) and (not b_poly.is_empty):
if isinstance(b_poly, Polygon):
for i, coord in enumerate(b_poly.exterior.coords[:-1]):
start, end = coord, b_poly.exterior.coords[i + 1]
Expand Down
4 changes: 2 additions & 2 deletions tests/assets/list_scatters.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# infinigen.assets.scatters.coral_reef # too slow for unit tests
infinigen.assets.scatters.chopped_trees
# infinigen.assets.scatters.chopped_trees # too slow for unit tests
# infinigen.assets.scatters.ground_mushroom # too slow for unit tests
infinigen.assets.scatters.clothes
infinigen.assets.scatters.decorative_plants
infinigen.assets.scatters.fern
infinigen.assets.scatters.flowerplant
infinigen.assets.scatters.grass
infinigen.assets.scatters.ground_leaves
infinigen.assets.scatters.ground_mushroom
infinigen.assets.scatters.ground_twigs
infinigen.assets.scatters.ivy
infinigen.assets.scatters.jellyfish
Expand Down

0 comments on commit e692ce8

Please sign in to comment.