Fixed #13 and #14
Build Debian Packages / build (trixie, debian13) (push) Successful in 14m2s
Build Debian Packages / build (bookworm, debian12) (push) Successful in 14m11s
Build Debian Packages / build (bullseye, debian11) (push) Has been cancelled

This commit is contained in:
2026-07-05 14:07:57 +02:00
parent 4250039b3c
commit b46debad69
4 changed files with 19 additions and 10 deletions
-6
View File
@@ -10,12 +10,6 @@ def result():
print("h5 already opened")
accu = Accumulation(error=False)
for num,ts in enumerate(results):
x = numpy.linspace(0, 1, 10)
y1 = [numpy.array([0, 4000, 8190, 8191, 8192, 0, -8191, -8192, -8193, 0], dtype="int16")]
# Test with default (14-bit)
adc1 = ADC_Result(x=x, y=y1, index=[(0,9)], sampl_freq=1000, desc={}, job_id=1, job_date=0)
accu.is_clipped = True
data["accu"] = accu
data["data/ts %i"%num] = ts+0
ts.write_to_hdf(h5, "/", f"adc_{num}", f"adc_{num}")
+1 -1
View File
@@ -105,7 +105,7 @@ class TestAccumulation(unittest.TestCase):
self.assertTrue(np.array_equal(sub_result.y[0], np.array([20, 30])))
self.assertTrue(np.array_equal(sub_result.y[1], np.array([25, 35])))
self.assertEqual(sub_result.index, [(0, 1)])
# TODO Fix #13: self.assertEqual(sub_result.common_descriptions, {"key": "value"})
self.assertEqual(sub_result.common_descriptions, {"key": "value"})
def test_write_to_csv_without_error(self):
"""Test the functionality of writing to CSV."""