zip_surface Package


class tvb.adapters.uploaders.zip_surface.parser.ZipSurfaceParser(path)[source]

Bases: object

Parser for a surface zip. Hemispheres are detected if the file name prefixes are the same and the suffixes start with: left, right or l, r or lh, rh. For example : verticesl.txt and verticesr.txt their uncommon suffixes are l, r

LEFT_SUFFIX_RE = re.compile('^(left|lh|l).*')

If a vertex file has a suffix matching this it is considered left hemispheric

NORMALS_TOKEN = 'normals'
RIGHT_SUFFIX_RE = re.compile('^(right|rh|r).*')
TRIANGLES_TOKEN = 'triangles'
VERTICES_TOKEN = 'vertices'