Revert order of operations in PartitionedSignal.implies()
authorCesar Strauss <cestrauss@gmail.com>
Sat, 23 Jan 2021 21:16:04 +0000 (18:16 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Sat, 23 Jan 2021 21:16:04 +0000 (18:16 -0300)
Now that all bitwise logic operations return PartitionedSignal, the
original order of operations will work.

src/ieee754/part/partsig.py

index 5d96a27..9e6e78b 100644 (file)
@@ -336,4 +336,4 @@ class PartitionedSignal:
             ``1`` otherwise.
         """
         # amazingly, this should actually work.
-        return conclusion | ~premise
+        return ~premise | conclusion