Skip to content

Commit 003e10c

Browse files
committed
fix: doctests
1 parent 4c12c70 commit 003e10c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mindboggle/mio/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def label_adjacency_matrix(label_file, ignore_values=[-1, 999], add_value=0,
237237
>>> label_file = fetch_data(urls['freesurfer_labels'], '', '.nii.gz')
238238
>>> labels, matrix, output_table = label_adjacency_matrix(label_file,
239239
... ignore_values, add_value, save_table, output_format, verbose)
240-
>>> out matrix.lookup([4,5,7,8,10,11,12,13,14,15], [4,4,4,4,4,4,4,4,4,4])
240+
>>> out = matrix.lookup([4,5,7,8,10,11,12,13,14,15], [4,4,4,4,4,4,4,4,4,4])
241241
>>> np.allclose(out, [ 1., 1., 0., 0., 0., 1., 0., 0., 1., 0.])
242242
True
243243

mindboggle/mio/tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ def select_column_from_tables(tables, index=0, write_table=True,
825825
>>> output = select_column_from_tables(tables, index, write_table,
826826
... output_table)
827827
>>> columns = output[1][0]
828-
>>> np.allclose(columns, [2.801, 3.943, 4.028])
828+
>>> np.allclose(columns[:3], [2.801, 3.943, 4.028])
829829
True
830830
831831
"""

0 commit comments

Comments
 (0)