octue / octue-sdk-python

The python SDK for @Octue services and digital twins.
https://octue.com
Other
10 stars 4 forks source link

Update child emulator to work with new event structure #633

Closed cortadocodes closed 4 months ago

cortadocodes commented 8 months ago

Bug report

What is the current behavior?

The child emulator only works with a list of events and not the events' attributes. The ChildEmulator class also duplicates and modifies some of the event handling code, making its emulation less useful and the code harder to maintain

What is the expected behavior?

For emulation to be faithful, we need to include event attributes and run as much of the same code as a real child as possible.

Proposed Solution

Refactor ChildEmulator to inherit from the new AbstractEventHandler.