Closed manics closed 10 years ago
saveFeatures
takes a set of features for a single image. col
(apart from the first column which is just a long id
) is a DoubleArrayColumn
, which means each cell in that table column holds an array. DoubleArrayColumn.values
holds multiple cells, so that addData
can add multiple rows at the same time. Since I'm only adding a single row at a time I'm always using values[0]
. [idx]
is then an index into the array within that cell.
col.values[0][idx] = value
from https://github.com/manics/omero-pychrm/blob/de46941d7fee1729ec92072b9d7959bd2c9e5468/OmeroPychrm/PychrmStorage.py#L202(Question from @colettace)