56f3eaf6f4b8a40fa5f04dde65c562b21327f69a,nilmtk/dataset_converters/redd/convert_redd.py,,_find_all_houses,#,61

Before Change




def _find_all_houses(redd_path):
    dir_names = listdir(redd_path)
    house_ids = [int(directory.replace("house_", "")) for directory in dir_names
                 if directory.startswith("house_")]
    house_ids.sort()
    return house_ids

After Change


    -------
    list of integers (house instances)
    
    dir_names = [p for p in listdir(redd_path) if isdir(join(redd_path, p))]
    return _matching_ints(dir_names, "^house_(\d)$")


def _find_all_chans(redd_path, house_id):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: nilmtk/nilmtk
Commit Name: 56f3eaf6f4b8a40fa5f04dde65c562b21327f69a
Time: 2014-07-02
Author: jack-list@xlk.org.uk
File Name: nilmtk/dataset_converters/redd/convert_redd.py
Class Name:
Method Name: _find_all_houses


Project Name: nilmtk/nilmtk
Commit Name: 56f3eaf6f4b8a40fa5f04dde65c562b21327f69a
Time: 2014-07-02
Author: jack-list@xlk.org.uk
File Name: nilmtk/dataset_converters/redd/convert_redd.py
Class Name:
Method Name: _find_all_chans


Project Name: virajmavani/semi-auto-image-annotation-tool
Commit Name: 20759ce7921b24160b7608ad6ebbb338c19853fb
Time: 2020-04-11
Author: 31489611+QuickLearner171998@users.noreply.github.com
File Name: main.py
Class Name: MainGUI
Method Name: available_models