Skip to content

Commit 16acde3

Browse files
committed
DOC: small edits to tractogram_file docstrings
1 parent a8af94c commit 16acde3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

nibabel/streamlines/tractogram_file.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
""" Define abstract interface for Tractogram file classes
2+
"""
13
from abc import ABCMeta, abstractmethod
24
from nibabel.externals.six import with_metaclass
35

@@ -85,7 +87,7 @@ def is_correct_format(cls, fileobj):
8587

8688
@abstractclassmethod
8789
def load(cls, fileobj, lazy_load=True):
88-
""" Loads streamlines from a file-like object.
90+
""" Loads streamlines from a filename or file-like object.
8991
9092
Parameters
9193
----------
@@ -107,7 +109,7 @@ def load(cls, fileobj, lazy_load=True):
107109

108110
@abstractmethod
109111
def save(self, fileobj):
110-
""" Saves streamlines to a file-like object.
112+
""" Saves streamlines to a filename or file-like object.
111113
112114
Parameters
113115
----------

nibabel/streamlines/trk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def is_correct_format(cls, fileobj):
309309

310310
@classmethod
311311
def load(cls, fileobj, lazy_load=False):
312-
""" Loads streamlines from a file-like object.
312+
""" Loads streamlines from a filename or file-like object.
313313
314314
Parameters
315315
----------
@@ -410,7 +410,7 @@ def save(self, fileobj):
410410
----------
411411
fileobj : string or file-like object
412412
If string, a filename; otherwise an open file-like object
413-
pointing to TRK file (and ready to read from the beginning
413+
pointing to TRK file (and ready to write from the beginning
414414
of the TRK header data).
415415
"""
416416
header = create_empty_header()

0 commit comments

Comments
 (0)