mendevi.database.meta.get_extractor

mendevi.database.meta.get_extractor(name: str, safe: bool = False) ExtractContext[source]

Get the way to deserialize a raw value.

Parameters

namestr

The label name.

safeboolean, default=False

If True, retrun a stupid value instead of raising KeyError.

Returns

labelstr

The description of the physical quantity. This description can be used to label the axes of a graph.

funccallable | str

The function that performs the verification and deserialisation task, or the formula that allows you to find this quantity.

is_logboolean or None

True to display in log space, False for linear. The value None means the axis is not continuous.