Skip to content

Commit

Permalink
Fix even more tests still importing skimage.graph
Browse files Browse the repository at this point in the history
  • Loading branch information
jni committed Feb 3, 2015
1 parent 9cbeeca commit e5fe82d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions skimage/future/graph/graph_cut.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def cut_threshold(labels, rag, thresh, in_place=True):
Examples
--------
>>> from skimage import data, graph, segmentation
>>> from skimage import data, segmentation
>>> from skimage.future import graph
>>> img = data.astronaut()
>>> labels = segmentation.slic(img)
>>> rag = graph.rag_mean_color(img, labels)
Expand Down Expand Up @@ -107,7 +108,8 @@ def cut_normalized(labels, rag, thresh=0.001, num_cuts=10, in_place=True,
Examples
--------
>>> from skimage import data, graph, segmentation
>>> from skimage import data, segmentation
>>> from skimage.future import graph
>>> img = data.astronaut()
>>> labels = segmentation.slic(img, compactness=30, n_segments=400)
>>> rag = graph.rag_mean_color(img, labels, mode='similarity')
Expand Down
3 changes: 2 additions & 1 deletion skimage/future/graph/rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ def draw_rag(labels, rag, img, border_color=None, node_color='#ffff00',
Examples
--------
>>> from skimage import data, graph, segmentation
>>> from skimage import data, segmentation
>>> from skimage.future import graph
>>> img = data.coffee()
>>> labels = segmentation.slic(img)
>>> g = graph.rag_mean_color(img, labels)
Expand Down
2 changes: 1 addition & 1 deletion skimage/future/graph/tests/test_rag.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import numpy as np
from skimage import graph
from skimage.future import graph
from skimage._shared.version_requirements import is_installed
from numpy.testing.decorators import skipif
from skimage import segmentation
Expand Down

0 comments on commit e5fe82d

Please sign in to comment.