cosapp.multimode.zeroCrossing¶
Classes
|
Enum covering zero-crossing directions |
|
- class cosapp.multimode.zeroCrossing.EventDirection(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
Enum
Enum covering zero-crossing directions
- DOWN = {'desc': 'Downward zero-crossing', 'func': <function EventDirection.<lambda>>}¶
- UP = {'desc': 'Upward zero-crossing', 'func': <function EventDirection.<lambda>>}¶
- UPDOWN = {'desc': 'Up- or downward zero-crossing', 'func': <function EventDirection.<lambda>>}¶
- class cosapp.multimode.zeroCrossing.ZeroCrossing(expression, direction)[source]¶
Bases:
NamedTuple
- direction: EventDirection¶
Alias for field number 1
- classmethod down(expression: str) ZeroCrossing [source]¶
- expression: str¶
Alias for field number 0
- classmethod from_comparison(expression: str) ZeroCrossing [source]¶
Interpret an expression of the kind ‘lhs <op> rhs’ as a ZeroCrossing object, where <op> is one of comparison operators: - <, <= - == - >, >=
- classmethod operators() Dict[str, EventDirection] [source]¶
- classmethod up(expression: str) ZeroCrossing [source]¶
- classmethod updown(expression: str) ZeroCrossing [source]¶