MCPcopy Create free account
hub / github.com/vispy/vispy / _calc_complex_clim

Method _calc_complex_clim

vispy/visuals/image_complex.py:125–130  ·  view source on GitHub ↗
(self, data=None)

Source from the content-addressed store, hash-verified

123 super(ComplexImageVisual, type(self)).clim.fset(self, clim)
124
125 def _calc_complex_clim(self, data=None):
126 # it would be nice if this could be done in the scalable texture mixin,
127 # but that would require the mixin knowing about the complex mode.
128 func = CPU_COMPLEX_TRANSFORMS[self.complex_mode]
129 _rendered = func(self._data if data is None else data)
130 return (_rendered.min(), _rendered.max())

Callers 2

__init__Method · 0.95
climMethod · 0.95

Calls 1

funcFunction · 0.50

Tested by

no test coverage detected