from_str#

static SamplingType.from_str(string: str) SamplingType#

Convert string to an instance of the SamplingType class.

Parameters:
string: str

String to be converted.

Returns:
SamplingType

Instance of the SamplingType class.

Raises:
TypeError

Raised when an invalid type of string is given.