751868b468d059133f7750dbc3582004801a2ba7,chaco/function_data_source.py,FunctionDataSource,set_data,#FunctionDataSource#,36

Before Change


            self._data = array([], dtype=float)

    def set_data(self, *args, **kw):
        raise RuntimeError("Cannot set numerical data on a FunctionDataSource")

    def set_mask(self, mask):
        // This would be REALLY FREAKING SLICK, but it"s current unimplemented
        raise NotImplementedError

After Change


            self._data = array([], dtype=float)

    def set_data(self, *args, **kw):
        raise RuntimeError("Cannot set numerical data on a {0}".format(
                           self.__class__))

    def set_mask(self, mask):
        // This would be REALLY FREAKING SLICK, but it"s current unimplemented
        raise NotImplementedError
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: enthought/chaco
Commit Name: 751868b468d059133f7750dbc3582004801a2ba7
Time: 2014-12-18
Author: jrocher@enthought.com
File Name: chaco/function_data_source.py
Class Name: FunctionDataSource
Method Name: set_data


Project Name: markovmodel/PyEMMA
Commit Name: b585bf2182eb4cbc4275e37ef4b3b5638c43768f
Time: 2018-06-19
Author: m.scherer@fu-berlin.de
File Name: setup_util.py
Class Name:
Method Name: cpp_flag


Project Name: mapillary/inplace_abn
Commit Name: 55bf3304de87cd56c547f87b4c053a488582e417
Time: 2020-09-03
Author: porzi@fb.com
File Name: inplace_abn/abn.py
Class Name: ABN
Method Name: forward


Project Name: scikit-optimize/scikit-optimize
Commit Name: ea8eeb61740626d22e6fcff79b8d49448d095d1b
Time: 2017-06-20
Author: jvmirca@gmail.com
File Name: skopt/space/space.py
Class Name: Categorical
Method Name: distance