59a4736028fea991396643e361d0488c7c96736d,nilmtk/elecmeter.py,ElecMeter,power_series,#ElecMeter#,297

Before Change


            series = chunk.icol(0).dropna()
            series.timeframe = getattr(chunk, "timeframe", None)
            series.look_ahead = getattr(chunk, "look_ahead", None)
            yield series        

    def dry_run_metadata(self):
        return self.metadata

After Change


                             " `measurement_ac_type_prefs` together.")

        // Select power column:
        if load_all_power_columns:
            kwargs["cols"] = [("power", ac_type) for ac_type in AC_TYPES]
        elif measurement_ac_type_prefs:
            best_ac_type = select_best_ac_type(self.available_power_ac_types(),
                                               measurement_ac_type_prefs)
            kwargs["cols"] = [("power", best_ac_type)]

        // Get source node
        last_node = self.get_source_node(**kwargs)
        generator = last_node.generator

        // Connect together all preprocessing nodes
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nilmtk/nilmtk
Commit Name: 59a4736028fea991396643e361d0488c7c96736d
Time: 2014-12-02
Author: jack-list@xlk.org.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: power_series


Project Name: explosion/thinc
Commit Name: cc53003029d11839c394a9544a1394b62721869d
Time: 2019-10-18
Author: honnibal+gh@gmail.com
File Name: thinc/extra/wrappers.py
Class Name: PyTorchWrapper
Method Name: use_params


Project Name: coala/coala-bears
Commit Name: c83e4f49fbb65aca0cfca955de65b7064c70448d
Time: 2018-07-04
Author: rafidteam@gmail.com
File Name: bears/general/FilenameBear.py
Class Name: FilenameBear
Method Name: run