Comparison#

module wntr.network.controls

class Comparison[source]#

Bases: Enum

An enum class for comparison operators.

Enum Members

gt

greater than

ge

greater than or equal to

lt

less than

le

less than or equal to

eq

equal to

ne

not equal to


classmethod parse(func)[source]#
eq = (5, <ufunc 'equal'>)#
property func#

The function call to use for this comparison

ge = (2, <ufunc 'greater_equal'>)#
gt = (1, <ufunc 'greater'>)#
le = (4, <ufunc 'less_equal'>)#
lt = (3, <ufunc 'less'>)#
ne = (6, <ufunc 'not_equal'>)#
property symbol#
property text#