cortex.polyutils.Surface.lift_subsurface_data

Surface.lift_subsurface_data(data, vertex_mask=None)

expand vertex dimension of data to original surface’s size

  • agnostic to dtype and dimensionality of data
    • vertex dimension should be last dimension

Parameters:
- dataarray

data to lift into original surface dimension

- vertex_maskboolean array

custom mask to use instead of subsurface_vertex_mask