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 5d96a27a7a22201c9b525577c08b1c7752793f2d..9e6e78b6ffc7965e72af7a1f4ea4a23405072740 100644 (file)
@@ -336,4 +336,4 @@ class PartitionedSignal:
             ``1`` otherwise.
         """
         # amazingly, this should actually work.
-        return conclusion | ~premise
+        return ~premise | conclusion