root/trunk/examples/OmeroTables/first.py

Revision 4918, 480 bytes (checked in by jmoore, 12 months ago)

OmeroTables : Added slice() method

Line 
1import omero
2import omero_Tables_ice
3import omero_SharedResources_ice
4
5c = omero.client()
6s = c.createSession()
7r = s.sharedResources()
8m = r.repositories()
9i = m.descriptions[0].id.val
10t = r.newTable(i, "/example.h5")
11l = omero.grid.LongColumn('name','desc',None)
12t.initialize([l])
13l.values = [1,2,3,4]
14t.addData([l])
15ids = t.getWhereList('(name==1)',{},0,0,0)
16data = t.readCoordinates(ids)
17print data.columns[0].values[0]
18data = t.slice([0],[0])
19print data.columns[0].values[0]
Note: See TracBrowser for help on using the browser.

1.2.1-PRO © 2008-2009 agile42 all rights reserved (this page was served in: 0.29991 sec.)