Skip to content

Commit

Permalink
TEMP workaround for #9813
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Moore committed Jan 21, 2013
1 parent 1d0937e commit 4c07e3f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/tools/OmeroPy/src/omero/gateway/__init__.py
Expand Up @@ -6307,6 +6307,14 @@ def getChannels (self):
pixels = self._conn.getQueryService().findByQuery(query, params, self._conn.SERVICE_OPTS)
return [ChannelWrapper(self._conn, c, idx=n, re=self._re, img=self) for n,c in enumerate(pixels.iterateChannels())]

def getZoomLevelScaling(self):
""" Temporary hard-coded example of what's needed for Big Images in FS. See #9813 """
if ".svs" in self.getName():
return {0: 1.0,
1: 0.25,
2: 0.062489446727078291,
3: 0.031237687848258006};

def setActiveChannels(self, channels, windows=None, colors=None):
"""
Sets the active channels on the rendering engine.
Expand Down

0 comments on commit 4c07e3f

Please sign in to comment.