Page 1 of 1

OMERO Tables and OMERO Columns

PostPosted: Mon Nov 22, 2010 7:13 pm
by icaoberg
If I have a numpy array can I do
Code: Select all
features_column = omero.grid.DoubleColumn("value", """Feature value""", features )


or should I
Code: Select all
features_column = omero.grid.DoubleColumn("value", """Feature value""", [] )
    #populate columns
    for i in range(len(features)):
        features_column.values.append( float(features[i]) )

Re: OMERO Tables and OMERO Columns

PostPosted: Tue Nov 23, 2010 8:30 pm
by jmoore
While using Ice 3.3, Ivan, it's safer to copy the arrays. When OMERO moves to Ice 3.4, it may be possible to use the numpy arrays directly. See http://www.zeroc.com/forums/bug-reports/4165-icepy-can-not-handle-buffers-longs-i64.html for more information.

~Josh.

Re: OMERO Tables and OMERO Columns

PostPosted: Fri Dec 03, 2010 3:45 pm
by icaoberg
thanks. i just wanted to be sure.