4082e490922171edc86cc8f59a7f380a2e4c2f23,scipy/spatial/_spherical_voronoi.py,SphericalVoronoi,__init__,#SphericalVoronoi#Any#Any#Any#Any#,166

Before Change


                          "(i.e. `radius=1`).",
                          DeprecationWarning)

        self.points = np.array(points).astype(np.double)
        self.radius = radius
        self._dim = len(points[0])
        if center is None:
            self.center = np.zeros(self._dim)

After Change


                          DeprecationWarning)

        self.points = np.array(points, dtype=float)
        if points.ndim != 2:
            raise TypeError("`points` must be a 2D array.")

        self.radius = float(radius)
        self._dim = points.shape[1]
        if center is None:
            self.center = np.zeros(self._dim)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: scipy/scipy
Commit Name: 4082e490922171edc86cc8f59a7f380a2e4c2f23
Time: 2020-05-13
Author: peter.mahler.larsen@gmail.com
File Name: scipy/spatial/_spherical_voronoi.py
Class Name: SphericalVoronoi
Method Name: __init__


Project Name: scikit-image/scikit-image
Commit Name: 0bf6d2940a46cd414be5d738232e49602fb90826
Time: 2018-05-22
Author: lagru@mailbox.org
File Name: skimage/morphology/extrema.py
Class Name:
Method Name: local_maxima


Project Name: Theano/Theano
Commit Name: 10a674a0d6fa608e1920313955b8aa09b48b0fa8
Time: 2017-03-28
Author: nouiz@nouiz.org
File Name: theano/gpuarray/blas.py
Class Name: GpuGemm
Method Name: make_node