Small modifications to DeriveUnit

Fixed init inconsitencies on DeriveUnit IO queues as well as function
naming. Updated test to stream output
This commit is contained in:
2026-09-09 11:23:13 +02:00
parent d9570cd153
commit f0638788fc
2 changed files with 17 additions and 7 deletions
+10 -1
View File
@@ -38,4 +38,13 @@ unit = DeriveUnit(uuid4(), process, [sig_a, sig_b], sig_r)
val_a = ValueDescriptor(signal_id=sig_a.id, value=1, timestamp=0)
val_b = ValueDescriptor(signal_id=sig_a.id, value=2, timestamp=10)
print(unit.process_offline([val_a, val_b]))
unit.put_data([val_a, val_b])
try:
while True:
output = unit.get_output()
if output is not None:
print(output)
except KeyboardInterrupt:
exit(0)