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 84a96188bdb31e0931c9e9afe55274a2e1c9d321..24fd80d4cb7985588a134a8789a1b2add2d480dd 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