Skip to content

Commit

Permalink
generate the wheels in one folder (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsellan authored Jun 13, 2024
1 parent daec97e commit 0a9b69a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ciwheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:

- uses: actions/upload-artifact@v3
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
# name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: |
./wheelhouse/*.whl
./wheelhouse/*.tar.gz
8 changes: 8 additions & 0 deletions test/test_lazy_cage.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,27 @@ def test_bunny(self):
# Generate many examples
for m in np.linspace(20,2000,10,dtype=int):
# print(m)
# print("Calling lazy_cage with m = ", m)
u,g = gpytoolbox.copyleft.lazy_cage(v,f,num_faces=m,max_iter=10)
# print("Finished lazy_cage with m = ", m)
# u,g fully contains v,f, i.e. they don't intersect
# print("Checking if u,g fully contains v,f")
b, _ = gpytoolbox.copyleft.do_meshes_intersect(v,f,u,g)
# print("Finished checking if u,g fully contains v,f")
self.assertFalse(b)
def test_armadillo(self):
v,f = gpytoolbox.read_mesh("test/unit_tests_data/armadillo.obj")
# print(v)
# Generate many examples
for m in np.linspace(1000,2000,5,dtype=int):
# print(m)
# print("Calling lazy_cage with m = ", m)
u,g = gpytoolbox.copyleft.lazy_cage(v,f,num_faces=m,max_iter=10)
# print("Finished lazy_cage with m = ", m)
# u,g fully contains v,f, i.e. they don't intersect
# print("Checking if u,g fully contains v,f")
b, _ = gpytoolbox.copyleft.do_meshes_intersect(v,f,u,g)
# print("Finished checking if u,g fully contains v,f")
self.assertFalse(b)

if __name__ == '__main__':
Expand Down

0 comments on commit 0a9b69a

Please sign in to comment.