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
DelayedSampleandSampleinherit from aSampleBaseclass, - change the tests in
SampleSet.insertto accept the base class an thus all Sample-like classes;
or:
- change the tests in
SampleSet.insertto accept bothSampleandDelayedSample.
(Could be the same with __setitem__.)