Fix marching_cubes for modern skimage

This commit is contained in:
jan 2018-01-15 22:56:45 -08:00
parent 0d1099cd8e
commit f86ae22e02
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ def visualize_isosurface(self,
level = grid.mean() level = grid.mean()
# Find isosurface with marching cubes # 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 # Convert vertices from index to position
pos_verts = numpy.array([self.ind2pos(verts[i, :], which_shifts, round_ind=False) pos_verts = numpy.array([self.ind2pos(verts[i, :], which_shifts, round_ind=False)

View File

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