get_style

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

get_style(name: str) → StyleSpec[source]

Return the preset registered under name.

Parameters:

name – Preset identifier, e.g. "radiology".

Returns:

The StyleSpec.

Raises:

HABITAPIError – If the name is not registered.