Skip to content

Instantly share code, notes, and snippets.

@sbesson
Created May 9, 2012 07:45
Show Gist options
  • Save sbesson/2642761 to your computer and use it in GitHub Desktop.
Save sbesson/2642761 to your computer and use it in GitHub Desktop.
Test emission wavelength after running Combine Images script
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