ff593034643874a365ef28405a1d9daafc0fa08c,nilmtk/elecmeter.py,ElecMeter,load,#ElecMeter#,312
Before Change
raise ValueError("Cannot use `ac_types` and/or `physical_quantities`"
" with `cols` parameter.")
if not kwargs.has_key("cols") :
if physical_quantities is None:
physical_quantities = self.available_physical_quantities()
elif isinstance(physical_quantities, basestring):
After Change
cols = []
for physical_quantity in physical_quantities:
available_ac_types = self.available_ac_types(physical_quantity)
if not available_ac_types:
// then this is probably a physical quantity like "voltage"
cols.append((physical_quantity, ""))
continue
if ac_types is None:
ac_types = available_ac_types
elif ac_types == ["best"]:
ac_types = [select_best_ac_type(available_ac_types)]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: nilmtk/nilmtk
Commit Name: ff593034643874a365ef28405a1d9daafc0fa08c
Time: 2014-12-10
Author: jack-list@xlk.org.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: load
Project Name: nilmtk/nilmtk
Commit Name: 7799db5af474118bf94c74b68e65d77f20b6e331
Time: 2015-08-17
Author: jack-list@xlk.org.uk
File Name: nilmtk/appliance.py
Class Name: Appliance
Method Name: matches
Project Name: nilmtk/nilmtk
Commit Name: 63ef8bfa3b63090437bd27bf1e04db7ae1eae3cf
Time: 2014-11-27
Author: jack-list@xlk.org.uk
File Name: nilmtk/stats/totalenergy.py
Class Name:
Method Name: get_total_energy