e43b9c2895e18251dddc76da6e3a4e81fe00f98a,talos/parameters/ParamSpace.py,ParamSpace,remove_ge,#ParamSpace#Any#Any#,231

Before Change


        """Removes based on greater-or-equal"""

        col = self.param_keys.index(label)
        self.param_space = self.param_space[self.param_space[:, col] >= value]
        self.param_index = list(range(len(self.param_space)))

    def remove_le(self, label, value):

        """Removes based on lesser-or-equal"""

After Change


        """Removes based on greater-or-equal"""

        col = self.param_keys.index(label)
        drop = np.where(self.param_space[:, col] >= value)[0].tolist()
        self.param_index = [x for x in self.param_index if x not in drop]

    def remove_le(self, label, value):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 15

Instances


Project Name: autonomio/talos
Commit Name: e43b9c2895e18251dddc76da6e3a4e81fe00f98a
Time: 2019-08-03
Author: mailme@mikkokotila.com
File Name: talos/parameters/ParamSpace.py
Class Name: ParamSpace
Method Name: remove_ge


Project Name: autonomio/talos
Commit Name: e43b9c2895e18251dddc76da6e3a4e81fe00f98a
Time: 2019-08-03
Author: mailme@mikkokotila.com
File Name: talos/parameters/ParamSpace.py
Class Name: ParamSpace
Method Name: remove_is


Project Name: autonomio/talos
Commit Name: e43b9c2895e18251dddc76da6e3a4e81fe00f98a
Time: 2019-08-03
Author: mailme@mikkokotila.com
File Name: talos/parameters/ParamSpace.py
Class Name: ParamSpace
Method Name: remove_le


Project Name: autonomio/talos
Commit Name: e43b9c2895e18251dddc76da6e3a4e81fe00f98a
Time: 2019-08-03
Author: mailme@mikkokotila.com
File Name: talos/parameters/ParamSpace.py
Class Name: ParamSpace
Method Name: remove_is_not