#16 enable import of slices of temporal bn

open
nobody
None
5
2012-12-15
2004-08-28
No

enable import of slices of temporal bn, by creating a
"slice" attribute (a hash table of timestamps (keys)
and py_bn's (values)).

by hand it looks like this:

riso_binding.import_remote ('localhost/temporal_2rooms')
tbn = temporal_2rooms
tbn.create_timeslice (1)
tbn.create_timeslice (2)
tbn.create_timeslice (3)
tbn.slice = { 1: py_bn (tbn.name_lookup('slice[1]')),
2: py_bn (tbn.name_lookup ('slice[2]')), 3: py_bn
(tbn.name_lookup ('slice[3]')) }

then refs like
temporal_2rooms.slice[2].total_N.posterior works as
expected.

may want to automatically notice in import_remote that
the bn in question is a temporal bn, and create
attribute slice = {}, then intercept "no such key"
exceptions to do name_lookup and put result into table.

Discussion