ParamEntry#

class pyopenms.ParamEntry#

Bases: object

OpenMS class ParamEntry

__init__() → None#
__init__(arg: pyopenms.ParamEntry, /) → None
__init__(name: str, value: bool | None | int | float | str | bytes | list[str] | list[int] | list[float], description: str, tags: list[str] = []) → None

Methods

__init__()

isBool()

True if this is a boolean parameter: a scalar string restricted to exactly 'true' and 'false' (either order), independent of the current value

isValid()

Check if value fulfills restrictions.

Attributes

property description: str#
isBool() → bool#

True if this is a boolean parameter: a scalar string restricted to exactly ‘true’ and ‘false’ (either order), independent of the current value

isValid() → tuple#

Check if value fulfills restrictions. Returns (valid, message)

property max_float: float#
property max_int: int#
property min_float: float#
property min_int: int#
property name: str#
property tags: set[str]#
property valid_strings: list[str]#

Allowed string values. Raises TypeError for a boolean parameter, which has no string restrictions from Python

property value: object#

The value. A boolean parameter (see isBool) reads and writes as a Python bool