Skip to content

Commit

Permalink
Bump the actions group with 2 updates (#74)
Browse files Browse the repository at this point in the history
* Bump the actions group with 2 updates

Bumps the actions group with 2 updates: [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) and [JamesIves/github-pages-deploy-action](https://github.com/jamesives/github-pages-deploy-action).


Updates `pypa/cibuildwheel` from 2.20.0 to 2.21.1
- [Release notes](https://github.com/pypa/cibuildwheel/releases)
- [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md)
- [Commits](pypa/cibuildwheel@v2.20.0...v2.21.1)

Updates `JamesIves/github-pages-deploy-action` from 4.6.3 to 4.6.8
- [Release notes](https://github.com/jamesives/github-pages-deploy-action/releases)
- [Commits](JamesIves/github-pages-deploy-action@v4.6.3...v4.6.8)

---
updated-dependencies:
- dependency-name: pypa/cibuildwheel
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: JamesIves/github-pages-deploy-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>

* minor updates for numpy 2.0

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex Kaszynski <akascap@gmail.com>
  • Loading branch information
dependabot[bot] and akaszynski authored Oct 1, 2024
1 parent b19e4d1 commit e6ae342
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/cibuildwheel@v2.20.0
uses: pypa/cibuildwheel@v2.21.1

- uses: actions/upload-artifact@v4
with:
Expand All @@ -38,6 +38,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Build sdist
run: pipx run build --sdist

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
make -C doc html
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.6.3
uses: JamesIves/github-pages-deploy-action@v4.6.8
if: startsWith(github.ref, 'refs/tags/')
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ TODO
test.sh
.pytest_cache/

# docs
doc/errors.txt
doc/_build
doc/examples

doc/sg_execution_times.rst

# MISC
.mypy_cache
31 changes: 16 additions & 15 deletions examples/cow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Tetrahedralize a cow mesh.
"""

# sphinx_gallery_thumbnail_number = 3
import numpy as np
import pyvista as pv
Expand Down Expand Up @@ -40,29 +41,29 @@

###############################################################################

plotter = pv.Plotter()
plotter.add_mesh(half_cow, color="w", show_edges=True)
plotter.add_mesh(cow_grid, color="r", style="wireframe", opacity=0.2)
plotter.camera_position = cpos
plotter.show()
pl = pv.Plotter()
pl.add_mesh(half_cow, color="w", show_edges=True)
pl.add_mesh(cow_grid, color="r", style="wireframe", opacity=0.2)
pl.camera_position = cpos
pl.show()

###############################################################################
# Make animation of the mesh construction

plotter = pv.Plotter(off_screen=True, window_size=[1000, 1000])
plotter.open_gif("cow.gif")
plotter.add_mesh(cow_grid, color="r", style="wireframe", opacity=0.2)
plotter.camera_position = cpos
plotter.write_frame()
pl = pv.Plotter(off_screen=True, window_size=[1000, 1000])
pl.open_gif("cow.gif")
pl.add_mesh(cow_grid, color="r", style="wireframe", opacity=0.2)
pl.camera_position = cpos
pl.write_frame()

nframe = 36
xb = np.array(cow_grid.bounds[0:2])
step = xb.ptp() / nframe
step = np.ptp(xb) / nframe
for val in np.arange(xb[0] + step, xb[1] + step, step):
mask = np.argwhere(cow_grid.cell_centers().points[:, 0] < val)
half_cow = cow_grid.extract_cells(mask)
plotter.add_mesh(half_cow, color="w", show_edges=True, name="building")
plotter.update()
plotter.write_frame()
pl.add_mesh(half_cow, color="w", show_edges=True, name="building")
pl.update()
pl.write_frame()

plotter.close()
pl.close()

0 comments on commit e6ae342

Please sign in to comment.