51f56cd2f529cbf92c0492c34510c040ed1b77fd,nilmtk/elecmeter.py,ElecMeter,power_series,#ElecMeter#Any#,191

Before Change


            then will attempt to use voltage data from this meter.
        nominal_voltage : float
        
        chunk = next(self.store.load(key=self.sensor_keys[0], **load_kwargs))
        for key in self.sensor_keys[1:]:
            chunk += next(self.store.load(key=key, **load_kwargs))
        best_ac_type = select_best_ac_type(self.available_ac_types(),
                                           measurement_ac_type_prefs)

After Change


        best_ac_type = select_best_ac_type(self.available_ac_types(),
                                           measurement_ac_type_prefs)

        generators = []
        for key in self.sensor_keys:
            generators.append(self.store.load(key=key, **load_kwargs))

        while True:
            try:
                chunk = next(generators[0])
            except StopIteration:
                break
            for generator in generators[1:]:
                chunk += next(generator)
            yield chunk[Power(best_ac_type)].dropna()
        
    def voltage_series(self):
        Returns a generator of pd.Series of voltage, if available.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: nilmtk/nilmtk
Commit Name: 51f56cd2f529cbf92c0492c34510c040ed1b77fd
Time: 2014-05-22
Author: jack-list@xlk.org.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: power_series


Project Name: azavea/raster-vision
Commit Name: d3c5ba6fa3edaddd4814d3d5b66a18022a35afe4
Time: 2018-10-03
Author: jmcclain@azavea.com
File Name: src/rastervision/rv_config.py
Class Name: RVConfig
Method Name: set_tempdir


Project Name: OpenNMT/OpenNMT-py
Commit Name: 820ad912dda0b5cbe49c53762374deb6bedd1299
Time: 2019-02-01
Author: dylan.flaute@gmail.com
File Name: tools/embeddings_to_torch.py
Class Name:
Method Name: get_vocabs


Project Name: pyannote/pyannote-audio
Commit Name: 16fb800c2d3f6d7198ad237adcab8f60828d0982
Time: 2017-05-15
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/segmentation.py
Class Name: Segmentation
Method Name: apply


Project Name: datascienceinc/Skater
Commit Name: e8b2e17f4eec658f6a6d53486dbbe3eac48bb0fa
Time: 2017-03-30
Author: aikramer2@gmail.com
File Name: pyinterpret/core/global_interpretation/partial_dependence.py
Class Name: PartialDependence
Method Name: _plot_2d_2_binary_feature