We're Hiring!

OMERO Tables and OMERO Columns

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

OMERO Tables and OMERO Columns

Postby icaoberg » Mon Nov 22, 2010 7:13 pm

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]) )
icaoberg
 
Posts: 145
Joined: Fri Sep 17, 2010 9:05 pm
Location: Pittsburgh, PA

Re: OMERO Tables and OMERO Columns

Postby jmoore » Tue Nov 23, 2010 8:30 pm

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.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: OMERO Tables and OMERO Columns

Postby icaoberg » Fri Dec 03, 2010 3:45 pm

thanks. i just wanted to be sure.
icaoberg
 
Posts: 145
Joined: Fri Sep 17, 2010 9:05 pm
Location: Pittsburgh, PA


Return to Developer Discussion

Who is online

Users browsing this forum: Google [Bot] and 0 guests