SampleSet.insert not accepting DelayedSample objects as item
In bob/pipelines/sample.py
, in the SampleSet
class, the insert(self, index, item)
does not accept DelayedSample
objects.
(Because of the test: if not isinstance(item, Sample):
.)
To solve:
- either make
DelayedSample
andSample
inherit from aSampleBase
class, - change the tests in
SampleSet.insert
to accept the base class an thus all Sample-like classes;
or:
- change the tests in
SampleSet.insert
to accept bothSample
andDelayedSample
.
(Could be the same with __setitem__
.)