Skip to content

Commit 27e64ab

Browse files
author
Arno Klein
committed
Fix two docstring examples
1 parent 9fafa38 commit 27e64ab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mindboggle/guts/graph.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def weight_graph(Nodes, Indices, Meshes, kernel=rbf_kernel, add_to_graph=True,
110110
>>> G.size()
111111
9
112112
>>> G.degree()
113-
{0.0: 4, 1.0: 4, 2.0: 3, 3.0: 4, 4.0: 3}
113+
DegreeView({0.0: 4, 1.0: 4, 2.0: 3, 3.0: 4, 4.0: 3})
114114
115115
"""
116116
import numpy as np
@@ -267,4 +267,4 @@ def graph_laplacian(W, type_of_laplacian='norm1', verbose=False):
267267
# ============================================================================
268268
if __name__ == "__main__":
269269
import doctest
270-
doctest.testmod(verbose=True) # py.test --doctest-modules
270+
doctest.testmod(verbose=True) # py.test --doctest-modules

mindboggle/shapes/laplace_beltrami.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ def spectrum_per_label(vtk_file, spectrum_size=10, exclude_labels=[-1],
776776
... spectrum_size, exclude_labels, None, area_file, largest_segment,
777777
... verbose)
778778
>>> [np.float("{0:.{1}f}".format(x, 5)) for x in spectrum_lists[0]]
779-
[0.0, 0.00054, 0.00244, 0.00291, 0.00456, 0.00575]
779+
[-0.0, 0.00054, 0.00244, 0.00291, 0.00456, 0.00575]
780780
>>> label_list[0:10]
781781
[1029, 1005, 1011, 1021, 1008, 1025, 999, 1013, 1007, 1022]
782782

0 commit comments

Comments
 (0)