Created
May 9, 2012 07:45
-
-
Save sbesson/2642761 to your computer and use it in GitHub Desktop.
Test emission wavelength after running Combine Images script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import omero | |
from omero.gateway import BlitzGateway | |
conn = BlitzGateway('sebastien', 'omero', port=4064, host='localhost') | |
conn.connect() | |
imageId = [326,327] | |
for i in imageId: | |
# Get the image | |
print 'Image ' + str(i) | |
image = conn.getObject("Image", i) | |
if image.getDescription(): | |
print image.getDescription() | |
# Read the emission wavelength | |
for c in image.getChannels(): | |
wvlgth = c.getLogicalChannel().getEmissionWave() | |
print 'Emission wavelength: ' + str(wvlgth) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment