Also copy the module in PartotionSignal.like()
authorCesar Strauss <cestrauss@gmail.com>
Sat, 23 Jan 2021 20:46:29 +0000 (17:46 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Sat, 23 Jan 2021 20:46:29 +0000 (17:46 -0300)
src/ieee754/part/partsig.py

index 84a9618..24fd80d 100644 (file)
@@ -66,6 +66,7 @@ class PartitionedSignal:
         Signal properties as the other"""
         result = PartitionedSignal(other.partpoints)
         result.sig = Signal.like(other.sig, *args, **kwargs)
+        result.m = other.m
         return result
 
     # unary ops that do not require partitioning