Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
- Timestamp:
-
06/18/11 22:14:42 (13 years ago)
- Author:
-
wmoore
- Comment:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
-
-
Property
Sprint
changed from
2011-05-05 (11)
to
-
v1
|
v5
|
|
11 | 11 | - Can be ported to Python scripts (see another movie) |
12 | 12 | - OmeroWeb in different movie |
| 13 | |
| 14 | {{{ |
| 15 | >>> from omero.gateway import BlitzGateway |
| 16 | >>> conn = BlitzGateway('root', 'omero', port=4064, host='localhost') |
| 17 | >>> conn.connect() |
| 18 | True |
| 19 | >>> dir(conn) |
| 20 | |
| 21 | >>> for p in conn.listProjects(): |
| 22 | ... print p.id, p.name |
| 23 | ... for d in p.listChildren(): |
| 24 | ... print " ", d.id, d.name |
| 25 | ... |
| 26 | |
| 27 | >>> d = conn.getObject("Dataset", 351) |
| 28 | >>> d |
| 29 | <_DatasetWrapper id=351> |
| 30 | >>> d._obj |
| 31 | |
| 32 | >>> for i in d.listChildren(): |
| 33 | ... print i.id, i.name |
| 34 | ... |
| 35 | >>> i = conn.getObject("Image", 13151) |
| 36 | >>> i |
| 37 | <_ImageWrapper id=13151> |
| 38 | >>> i.getSizeZ() |
| 39 | 16 |
| 40 | >>> i.getSizeT() |
| 41 | 1 |
| 42 | >>> img = i.renderImage(8, 0) |
| 43 | >>> print img |
| 44 | <PIL.JpegImagePlugin.JpegImageFile instance at 0x1d7c968> |
| 45 | >>> img.show() |
| 46 | >>> |
| 47 | }}} |
| 48 | |
| 49 | Briefly show web: |
| 50 | * Goto webtest/dataset/351 |
| 51 | * Show webtest/views.py - conn.getObject("Dataset", id) |
| 52 | * Show templates/webtest/dataset.html |
| 53 | |
1.3.13-PRO © 2008-2011
Agilo Software all
rights reserved
(this page was served in: 0.12773 sec.)