44672d4eba334ca97d32874d9aa03b02ce46d513,nilmtk/metergroup.py,MeterGroup,load,#MeterGroup#,517
Before Change
.. note:: Different AC types will be treated separately.
// Get a list of generators
generators = [meter.load(**kwargs) for meter in self.meters]
// Load each generator and yield the sum
while True:
chunk = None
After Change
// Get a list of generators
generators = []
for meter in self.meters:
try:
generator = meter.load(**kwargs)
except MeasurementError as e:
warn("Ignoring meter "{}" because it does not have the correct"
" measurements. The MeasurementError was: "{}""
.format(meter.identifier, e))
else:
generators.append(generator)
// Load each generator and yield the sum
while True:
chunk = None
for generator in generators:
try:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: nilmtk/nilmtk
Commit Name: 44672d4eba334ca97d32874d9aa03b02ce46d513
Time: 2014-12-10
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: load
Project Name: pgmpy/pgmpy
Commit Name: d690e06459ea9f71f8e246edbf88e7f4d7250bf5
Time: 2014-01-01
Author: ankurankan@gmail.com
File Name: src/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: add_states
Project Name: matthewwithanm/django-imagekit
Commit Name: 14bac58373d87ab4d90879b1654b62bf89603bc4
Time: 2011-11-02
Author: matthew@exanimo.com
File Name: imagekit/models.py
Class Name:
Method Name: _get_suggested_extension