cortex.dataset.Dataset.save

Dataset.save(filename: str | None = None, pack: bool = False) → None[source]

Write this dataset’s views out to an HDF5 file.

Parameters:
filenamestr, optional

Path to write to. If omitted, writes to the file this dataset was already opened from (raises if there is none).

packbool, optional

If True, also bundle each view’s subject surfaces, transforms, and masks into the file, so it can be opened without access to the pycortex filestore/database. Default False.

Returns:
None

Writes filename (or the already-open file) as a side effect; has no return value.