5dc86bf879b66195a11cad229840aadc2a5ec942,nilmtk/electric.py,Electric,when_on,#Electric#,31

Before Change


            index is the same as for chunk returned by `self.power_series()`
            values are booleans
        
        on_power_threshold = load_kwargs.pop("on_power_threshold", 
                                             self.min_on_power_threshold())
        for chunk in self.power_series(**load_kwargs):
            yield chunk > on_power_threshold
            
    def min_on_power_threshold(self):

After Change


            index is the same as for chunk returned by `self.power_series()`
            values are booleans
        
        if on_power_threshold is None:
            on_power_threshold = self.min_on_power_threshold()
        for chunk in self.power_series(**load_kwargs):
            yield chunk >= on_power_threshold
            
    def min_on_power_threshold(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: nilmtk/nilmtk
Commit Name: 5dc86bf879b66195a11cad229840aadc2a5ec942
Time: 2014-12-20
Author: jack-list@xlk.org.uk
File Name: nilmtk/electric.py
Class Name: Electric
Method Name: when_on


Project Name: ntucllab/libact
Commit Name: fa7787f74870c18350d8bf8a023fd421964a1a31
Time: 2015-10-28
Author: yangarbiter@gmail.com
File Name: libact/query_strategies/active_learning_by_learning.py
Class Name: Exp4P
Method Name: __init__


Project Name: nilmtk/nilmtk
Commit Name: 509a854ef935ac14cbdc22f8da6f837fc5385eb6
Time: 2015-11-25
Author: jack-list@xlk.org.uk
File Name: nilmtk/disaggregate/combinatorial_optimisation.py
Class Name: CombinatorialOptimisation
Method Name: disaggregate