Browse Source

Fix marching_cubes for modern skimage

tags/v0.3
jan 2 years ago
parent
commit
f86ae22e02
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      gridlock/read.py
  2. +1
    -1
      setup.py

+ 1
- 1
gridlock/read.py View File

@@ -150,7 +150,7 @@ def visualize_isosurface(self,
level = grid.mean()

# Find isosurface with marching cubes
verts, faces = skimage.measure.marching_cubes(grid, level)
verts, faces, _normals, _values = skimage.measure.marching_cubes(grid, level)

# Convert vertices from index to position
pos_verts = numpy.array([self.ind2pos(verts[i, :], which_shifts, round_ind=False)


+ 1
- 1
setup.py View File

@@ -17,7 +17,7 @@ setup(name='gridlock',
'visualization': ['matplotlib'],
'visualization-isosurface': [
'matplotlib',
'skimage',
'skimage>=0.13',
'mpl_toolkits',
],
},


Loading…
Cancel
Save