3b1755b2600a0a34a3be60df73cd1710ec8e20ce,nilmtk/metergroup.py,,combine_chunks_from_generators,#,1265
Before Change
timeframe = timeframe.intersect(chunk_from_next_meter.timeframe)
chunk = chunk.add(chunk_from_next_meter, fill_value=0, level="physical_quantity")
if len(chunk) != len(chunk_from_next_meter):
warn("Meters are not perfectly aligned.")
// Update columns_to_average_counter
physical_quantities = chunk_from_next_meter.columns.get_level_values("physical_quantity")
columns_to_average = (set(PHYSICAL_QUANTITIES_TO_AVERAGE)
.intersection(physical_quantities))
counter_increment = pd.DataFrame(1, columns=columns_to_average,
After Change
try:
chunk = chunk.add(chunk_from_next_meter, fill_value=0)
except ValueError as e:
if str(e) != "cannot join with no level specified and no overlapping names":
raise
chunk = chunk.add(chunk_from_next_meter, fill_value=0,
level="physical_quantity")
// Update columns_to_average_counter - this is necessary so we do not
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: nilmtk/nilmtk
Commit Name: 3b1755b2600a0a34a3be60df73cd1710ec8e20ce
Time: 2014-12-11
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name:
Method Name: combine_chunks_from_generators
Project Name: craffel/mir_eval
Commit Name: 9a3cf7ff00c081ff394f62dceae1c3d8d199d9e4
Time: 2014-10-25
Author: brian.mcfee@nyu.edu
File Name: mir_eval/tempo.py
Class Name:
Method Name: validate
Project Name: chartbeat-labs/textacy
Commit Name: db3deb22ff32f40ba446149946b4f0d47ba2fed2
Time: 2019-07-14
Author: burtdewilde@gmail.com
File Name: textacy/similarity.py
Class Name:
Method Name: jaccard