6ca8ec3786d864f53ab379f59e1f6668afd1ff5e,mne/viz/backends/_pysurfer_mayavi.py,_Renderer,screenshot,#_Renderer#Any#Any#,262

Before Change


            ndim = 3 if mode == "rgb" else 4
            return np.zeros(tuple(self.window_size) + (ndim,), np.uint8)
        else:
            with warnings.catch_warnings(record=True):  // traits
                img = self.mlab.screenshot(self.fig, mode=mode)
                if isinstance(filename, str):
                    _save_figure(img, filename)
                return img

    def project(self, xyz, ch_names):
        xy = _3d_to_2d(self.fig, xyz)
        xy = dict(zip(ch_names, xy))
        pts = self.fig.children[-1]

After Change


                     focalpoint=focalpoint)

    def screenshot(self, mode="rgb", filename=None):
        return _take_3d_screenshot(figure=self.fig, mode=mode,
                                   filename=filename)

    def project(self, xyz, ch_names):
        xy = _3d_to_2d(self.fig, xyz)
        xy = dict(zip(ch_names, xy))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mne-tools/mne-python
Commit Name: 6ca8ec3786d864f53ab379f59e1f6668afd1ff5e
Time: 2019-11-22
Author: guillaume.favelier@gmail.com
File Name: mne/viz/backends/_pysurfer_mayavi.py
Class Name: _Renderer
Method Name: screenshot


Project Name: EpistasisLab/tpot
Commit Name: 6e0b0c8846b0eeb6e3aecf3cd38b9c9f33f63e84
Time: 2016-08-19
Author: rso@randalolson.com
File Name: tpot/tpot.py
Class Name: TPOT
Method Name: predict


Project Name: scipy/scipy
Commit Name: 36611b8ea3142f4d98be28ceb16bf75f8988f5a0
Time: 2020-07-10
Author: pav@iki.fi
File Name: scipy/sparse/sputils.py
Class Name:
Method Name: matrix