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: 3

Non-data size: 4

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: graphbrain/graphbrain
Commit Name: a4f5326de1535873d5dd80c3d518efead2149f95
Time: 2019-07-29
Author: telmo@telmomenezes.net
File Name: graphbrain/agents/__init__.py
Class Name:
Method Name: create_agent