from_list_or_value

classmethod Parameter.from_list_or_value(value: int | float | list, default_options: dict = None, label: str = None) Parameter[source]

Create a parameter from a list or numeric value.

Parameters
  • value (int | float | list) – The list or numeric value.

  • default_options (dict) – A dictionary of default options.

  • label (str) – The label of the parameter.

Returns

The created Parameter.

Return type

Parameter