Skip to content

Commit aef5a4f

Browse files
committed
fix formatting; need timeseries example
1 parent ad3316f commit aef5a4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nibabel/gifti/gifti.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,19 +696,22 @@ def agg_data(self, intent_code=None):
696696
This may be useful for ensuring that expected data arrives in a consistent order.
697697
698698
Examples:
699+
699700
>>> import nibabel as nib
700701
>>> from nibabel.testing import test_data
701702
>>> surf_gii_fname = test_data('gifti', 'ascii.gii')
702703
>>> surf_gii_img = nib.load(surf_gii_fname)
703704
704705
When not passing anything to``intent_code``
706+
705707
>>> surf_gii_img.agg_data()
706708
(array([[-16.07201 , -66.187515, 21.266994],
707709
[-16.705893, -66.05434 , 21.232786],
708710
[-17.61435 , -65.40164 , 21.071466]], dtype=float32),
709711
array([0, 1, 2], dtype=int32))
710712
711713
When passig matching intend codes ``intent_code``
714+
712715
>>> surf_gii_img.agg_data('pointset')
713716
array([[-16.07201 , -66.187515, 21.266994],
714717
[-16.705893, -66.05434 , 21.232786],
@@ -718,10 +721,12 @@ def agg_data(self, intent_code=None):
718721
array([0, 1, 2], dtype=int32)
719722
720723
When passing mismatching intent codes ``intent_code``
724+
721725
>>> surf_gii_img.agg_data('time series')
722726
() # return a empty ``tuple``
723727
724728
When passing tuple ``intent_code``
729+
725730
>>> surf_gii_img.agg_data(('pointset', 'triangle'))
726731
(array([[-16.07201 , -66.187515, 21.266994],
727732
[-16.705893, -66.05434 , 21.232786],

0 commit comments

Comments
 (0)