cortex.dataset.Volume.empty

classmethod Volume.empty(subject, xfmname, value=0, **kwargs)

Create a constant-valued VolumeData for the given subject and xfmname. Often useful for testing purposes.

Parameters:
subjectstr

Subject identifier. Must exist in the pycortex database.

xfmnamestr

Transform name. Must exist in the pycortex database.

valuefloat, optional

Value that the VolumeData will be filled with.

**kwargs

Other keyword arguments are passed to the init function for this class.

Returns:
VolumeData subclass

A VolumeData subclass object whose data is constant, equal to value.