Skip to content

Commit e22bb01

Browse files
authored
Merge pull request #411 from GeoStat-Framework/drop-meshzoo
Drop meshzoo dependency
2 parents f5c5228 + e5e19dc commit e22bb01

4 files changed

Lines changed: 3 additions & 7 deletions

File tree

examples/01_random_field/05_mesh_ensemble.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,18 @@
1313
1414
- `points="points"` will generate a field on the mesh points
1515
- `points="centroids"` will generate a field on the cell centroids
16-
17-
In this example, we will generate a simple mesh with the aid of
18-
`meshzoo <https://github.com/nschloe/meshzoo>`_.
1916
"""
2017

2118
import matplotlib.pyplot as plt
2219
import matplotlib.tri as tri
2320
import meshio
24-
import meshzoo
2521
import numpy as np
2622

2723
import gstools as gs
2824

29-
# generate a triangulated hexagon with meshzoo
30-
points, cells = meshzoo.ngon(6, 4)
25+
# read a triangulated hexagon
26+
points = np.load("hexagon_points.npy")
27+
cells = np.load("hexagon_cells.npy")
3128
mesh = meshio.Mesh(points, {"triangle": cells})
3229

3330
###############################################################################
2.38 KB
Binary file not shown.
1.08 KB
Binary file not shown.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ dependencies = [
5555
doc = [
5656
"myst_parser",
5757
"matplotlib>=3.7",
58-
"meshzoo>=0.7",
5958
"numpydoc>=1.1",
6059
"pykrige>=1.5,<2",
6160
"pyvista>=0.40",

0 commit comments

Comments
 (0)