5d4b721e09d49fc7d97ecba9e441d117741ce6b9,hyperspy/drawing/image.py,ImagePlot,optimize_contrast,#ImagePlot#Any#,193

Before Change


    def optimize_contrast(self, data):
        if (self._vmin_user is not None and self._vmax_user is not None):
            return
        if "complex" in data.dtype.name:
            data = np.log(np.abs(data))
        self._vmin_auto, self._vmax_auto = utils.contrast_stretching(
            data, self.saturated_pixels)

After Change


    def optimize_contrast(self, data):
        if (self._vmin_user is not None and self._vmax_user is not None):
            return
        if np.issubdtype(data.dtype, complex):
            data = np.log(np.abs(data))
        self._vmin_auto, self._vmax_auto = utils.contrast_stretching(
            data, self.saturated_pixels)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: hyperspy/hyperspy
Commit Name: 5d4b721e09d49fc7d97ecba9e441d117741ce6b9
Time: 2016-07-11
Author: j.caron@fz-juelich.de
File Name: hyperspy/drawing/image.py
Class Name: ImagePlot
Method Name: optimize_contrast


Project Name: hyperspy/hyperspy
Commit Name: 5d4b721e09d49fc7d97ecba9e441d117741ce6b9
Time: 2016-07-11
Author: j.caron@fz-juelich.de
File Name: hyperspy/drawing/image.py
Class Name: ImagePlot
Method Name: update


Project Name: hyperspy/hyperspy
Commit Name: 5d4b721e09d49fc7d97ecba9e441d117741ce6b9
Time: 2016-07-11
Author: j.caron@fz-juelich.de
File Name: hyperspy/io_plugins/semper_unf.py
Class Name: SemperFormat
Method Name: _check_format