From 5d9e5c6ebfd815da90450f4e1e2ece2d1e2c3119 Mon Sep 17 00:00:00 2001 From: Maarten Sebregts Date: Tue, 21 Jul 2026 12:07:02 +0200 Subject: [PATCH] Remove Operator.NONE --- ymmsl/v0_1/component.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ymmsl/v0_1/component.py b/ymmsl/v0_1/component.py index 2cd926d..5e793a6 100644 --- a/ymmsl/v0_1/component.py +++ b/ymmsl/v0_1/component.py @@ -26,7 +26,6 @@ class Operator(Enum): and operators for other components such as mappers. """ - NONE = 0 #: No operator F_INIT = 1 #: Initialisation phase, before start of the SEL O_I = 2 #: State observation within the model's main loop S = 3 #: State update in the model's main loop @@ -34,11 +33,11 @@ class Operator(Enum): def allows_sending(self) -> bool: """Whether ports on this operator can send.""" - return self in {Operator.NONE, Operator.O_I, Operator.O_F} + return self in {Operator.O_I, Operator.O_F} def allows_receiving(self) -> bool: """Whether ports on this operator can receive.""" - return self in {Operator.NONE, Operator.F_INIT, Operator.S} + return self in {Operator.F_INIT, Operator.S} class Port: