The Virtual Brain Project

Table Of Contents

Previous topic

obj Package

Next topic

visualizers Package

This Page

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 = <_sre.SRE_Pattern object at 0x7f372ffa7508>

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

NORMALS_TOKEN = 'normals'
RIGHT_SUFFIX_RE = <_sre.SRE_Pattern object at 0x7f372fbe1630>
TRIANGLES_TOKEN = 'triangles'
VERTICES_TOKEN = 'vertices'