metasyn.metadist

metasyn.metadist(name=None, var_type=None, unique=None, version=None)

Decorate class to create a distribution with the right properties.

Parameters:
  • name (Optional[str]) – Name that identifies the distribution uniquely, e.g. core.uniform, core.regex. The name should use a period (.) so that the first part is the namespace (e.g. core), and the second part the name of the distribution.

  • var_type (Union[str, list[str], None]) – Variable type of the distribution, e.g. continuous, categorical, string.

  • unique (Optional[bool]) – Whether the distribution is unique or not.

  • version (Optional[str]) – Version of the distribution. Increment this to ensure that compatibility is properly handled.

Returns:

Class with the appropriate class variables.

Return type:

cls