gifti Package

parser

class tvb.adapters.uploaders.gifti.parser.GIFTIParser(operation_id)[source]

Bases: object

This class reads content of a GIFTI file and builds / returns a Surface instance filled with details.

ASP_ATTR = 'AnatomicalStructurePrimary'
DATE_ATTR = 'Date'
DESCRIPTION_ATTR = 'Description'
NAME_ATTR = 'Name'
SUBJECT_ATTR = 'SubjectID'
TIME_STEP_ATTR = 'TimeStep'
UNIQUE_ID_ATTR = 'UniqueID'
parse(data_file, data_file_part2=None, surface_type='ReadFromMetaData', should_center=False)[source]

Parse NIFTI file(s) and returns A Surface or a TimeSeries for it. :param surface_type: one of “Cortex” “Head” “ReadFromMetaData” :param data_file_part2: a file containing the second part of the surface