From 54ebe54bb3dceacfddf376a73088896daf900bc6 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 27 Dec 2020 00:09:57 +0000 Subject: [PATCH] comment PartitionedSignal lt/le --- src/ieee754/part/partsig.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ieee754/part/partsig.py b/src/ieee754/part/partsig.py index a5f95140..728764e7 100644 --- a/src/ieee754/part/partsig.py +++ b/src/ieee754/part/partsig.py @@ -252,6 +252,7 @@ class PartitionedSignal: def __lt__(self, other): width = self.sig.shape()[0] + # swap operands, use gt to do lt return self._compare(width, other, self, "gt", PartitionedEqGtGe.GT) def __ge__(self, other): @@ -260,6 +261,7 @@ class PartitionedSignal: def __le__(self, other): width = self.sig.shape()[0] + # swap operands, use ge to do le return self._compare(width, other, self, "ge", PartitionedEqGtGe.GE) # useful operators -- 2.30.2