@@ -721,65 +721,24 @@ def agg_data(self, intent_code=None):
721
721
When not passing anything to ``intent_code``
722
722
723
723
>>> surf_gii_img.agg_data() # surface file
724
- (array([[-16.07201 , -66.187515, 21.266994],
725
- [-16.705893, -66.05434 , 21.232786],
726
- [-17.61435 , -65.40164 , 21.071466]], dtype=float32), array([0, 1, 2], dtype=int32))
727
724
>>> func_gii_img.agg_data() # functional file
728
- array([[ 545.4326 , 535.8471 , 537.5014 , ..., 540.2762 ,
729
- 539.53827 , 541.3617 ],
730
- [ 640.0118 , 634.727 , 630.03784 , ..., 635.21936 ,
731
- 641.19586 , 638.7647 ],
732
- [ 612.9056 , 607.3228 , 606.1355 , ..., 608.2441 ,
733
- 615.8239 , 613.0585 ],
734
- ...,
735
- [ 101.28482 , 101.41192 , 99.21213 , ..., 100.47232 ,
736
- 99.258316, 99.440796],
737
- [ 371.81592 , 367.02896 , 363.90207 , ..., 365.52597 ,
738
- 363.44937 , 363.10278 ],
739
- [ 268.6521 , 262.0212 , 259.06717 , ..., 262.5381 ,
740
- 257.8245 , 259.7127 ]], dtype=float32)
741
725
742
726
When passig matching intend codes ``intent_code``
743
727
744
728
>>> surf_gii_img.agg_data('pointset') # surface pointset
745
- array([[-16.07201 , -66.187515, 21.266994],
746
- [-16.705893, -66.05434 , 21.232786],
747
- [-17.61435 , -65.40164 , 21.071466]], dtype=float32)
748
729
>>> surf_gii_img.agg_data('triangle') # surface triangle
749
- array([0, 1, 2], dtype=int32)
750
730
>>> func_gii_img.agg_data('time series') # functional file
751
- array([[ 545.4326 , 535.8471 , 537.5014 , ..., 540.2762 ,
752
- 539.53827 , 541.3617 ],
753
- [ 640.0118 , 634.727 , 630.03784 , ..., 635.21936 ,
754
- 641.19586 , 638.7647 ],
755
- [ 612.9056 , 607.3228 , 606.1355 , ..., 608.2441 ,
756
- 615.8239 , 613.0585 ],
757
- ...,
758
- [ 101.28482 , 101.41192 , 99.21213 , ..., 100.47232 ,
759
- 99.258316, 99.440796],
760
- [ 371.81592 , 367.02896 , 363.90207 , ..., 365.52597 ,
761
- 363.44937 , 363.10278 ],
762
- [ 268.6521 , 262.0212 , 259.06717 , ..., 262.5381 ,
763
- 257.8245 , 259.7127 ]], dtype=float32)
764
731
765
732
When passing mismatching ``intent_code``, the function return a empty ``tuple``
766
733
767
734
>>> surf_gii_img.agg_data('time series')
768
- ()
769
735
>>> func_gii_img.agg_data('triangle')
770
- ()
771
736
772
737
When passing tuple ``intent_code``, the output will follow
773
738
the order of ``intent_code`` in the tuple
774
739
775
740
>>> surf_gii_img.agg_data(('pointset', 'triangle'))
776
- (array([[-16.07201 , -66.187515, 21.266994],
777
- [-16.705893, -66.05434 , 21.232786],
778
- [-17.61435 , -65.40164 , 21.071466]], dtype=float32), array([0, 1, 2], dtype=int32))
779
741
>>> surf_gii_img.agg_data(('triangle', 'pointset'))
780
- (array([0, 1, 2], dtype=int32), array([[-16.07201 , -66.187515, 21.266994],
781
- [-16.705893, -66.05434 , 21.232786],
782
- [-17.61435 , -65.40164 , 21.071466]], dtype=float32))
783
742
"""
784
743
785
744
# Allow multiple intents to specify the order
0 commit comments