Public Access
script for release added, pyrefly checks are fixed for now
This commit is contained in:
1 parent
428af30c30
commit
dda8ae7df0
6 files changed
+179
-89
No files matched your search
@@ -360,6 +360,20 @@ class TestAccumulation(unittest.TestCase):
|
||||
r *= 2
|
||||
np.testing.assert_array_equal(accu.y[0], np.array([10, 20, 30], dtype="float32"))
|
||||
|
||||
def test_empty_iadd_accumulation_without_common_descriptions(self):
|
||||
"""An accumulation without common descriptions can be copied in-place."""
|
||||
other = Accumulation(x=np.array([0.0, 1.0]),
|
||||
y=[np.array([10.0, 20.0])],
|
||||
n=1,
|
||||
index=[(0, 1)],
|
||||
sampl_freq=1000.0)
|
||||
accu = Accumulation()
|
||||
|
||||
accu += other
|
||||
|
||||
self.assertIsNone(accu.common_descriptions)
|
||||
np.testing.assert_array_equal(accu.y[0], other.y[0])
|
||||
|
||||
def test_accumulation_plus_accumulation_keeps_both_job_ids(self):
|
||||
"""accu1 + accu2 must keep the provenance of both operands."""
|
||||
adc1 = self.create_adc_result()
|
||||
|
||||
Reference in new issue
Block a user