Parse#

class Parse[source]#

Bases: object

Input and output parsers for node parameters to validate and parse values.

Methods

from_bool(value)

Convert a boolean value to a integer value.

greater_equal(value, limit)

Ensures that the value is greater or equal a lower limit.

multiple_of(value, factor, rounding)

Rounds a value to a multiple of a given factor.

phase(raw_phase)

Corrects the phase to -180 <= value <= 180.

smaller_equal(value, limit)

Ensures that the value is smaller or equal a upper limit.

to_bool(value)

Convert a integer value to a boolean value.