TWOEARS / blackboard-system

Two!Ears Auditory Model - Blackboard system module
http://docs.twoears.eu/en/latest/blackboard/
GNU General Public License v2.0
3 stars 2 forks source link

Blackboard data requests error handling #50

Open hagenw opened 7 years ago

hagenw commented 7 years ago

If you request data from the blackboard that is not available you are not raising an error at the moment:

>> bbs.run()
>> bbs.blackboard.getData('foo')

ans =

     []

It could be that this will not result in any error at all, but that at the end of your calculation you simply get an NaN. As this can be very hard for a user to debug I would suggest to add an error message if data is requested that is not available.