0ac7cecce4f147011037fcb79dfd57867b8329a8,nilmtk/metergroup.py,MeterGroup,plot_good_sections,#MeterGroup#Any#Any#Any#,1393

Before Change


            ax = plt.gca()

        // Prepare list of meters
        meters = copy(self.meters)
        if include_disabled_meters:
            meters += self.disabled_meters
        meters.sort(key=meter_sorting_key, reverse=True)

After Change


            meter_ids = [ElecMeterID(instance=meter_instance,
                                     building=building_id.instance,
                                     dataset=building_id.dataset)
                         for meter_instance in appliance.metadata["meters"]]

            if appliance.n_meters == 1:
                // Attach this appliance to just a single meter
                meter = self[meter_ids[0]]
                if isinstance(meter, MeterGroup): // MeterGroup of site_meters
                    metergroup = meter
                    for meter in metergroup.meters:
                        meter.appliances.append(appliance)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: nilmtk/nilmtk
Commit Name: 0ac7cecce4f147011037fcb79dfd57867b8329a8
Time: 2014-12-19
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: plot_good_sections


Project Name: analysiscenter/batchflow
Commit Name: eba587e7549e252036f2500e9a3b3a18a778b335
Time: 2017-11-17
Author: rhudor@gmail.com
File Name: dataset/batch_image.py
Class Name: ImagesBatch
Method Name: assemble


Project Name: dhlab-epfl/dhSegment
Commit Name: 4c396eb38f8696d8869219dc8c20d19a374cbacc
Time: 2018-02-13
Author: seg.benoit@gmail.com
File Name: doc_seg/evaluation/cbad.py
Class Name:
Method Name: cbad_evaluate_folder