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)
yield chunk[Power(best_ac_type)].dropna()
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()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: pysb/pysb
Commit Name: d39d3272220da5bcb0c43985e6c1e3903dac2bf5
Time: 2011-08-07
Author: jmuhlich@bitflood.org
File Name: setup.py
Class Name:
Method Name: main
Project Name: ntucllab/libact
Commit Name: 325fae8fbbc16b3c1ca40559bb2a9c783efaf440
Time: 2015-11-25
Author: yangarbiter@gmail.com
File Name: libact/query_strategies/active_learning_by_learning.py
Class Name: ActiveLearningByLearning
Method Name: make_query