56f3eaf6f4b8a40fa5f04dde65c562b21327f69a,nilmtk/dataset_converters/redd/convert_redd.py,,_find_all_chans,#,69
Before Change
def _find_all_chans(redd_path, house_id):
house_path = join(redd_path, "house_{:d}".format(house_id))
filenames = listdir(house_path)
chans = [int(fname.replace("channel_", "").replace(".dat", ""))
for fname in filenames
if fname.startswith("channel_") and fname.endswith(".dat")]
chans.sort()
After Change
list of integers (channels)
house_path = join(redd_path, "house_{:d}".format(house_id))
filenames = [p for p in listdir(house_path) if isfile(join(house_path, p))]
return _matching_ints(filenames, "^channel_(\d\d?).dat$")
def _matching_ints(strings, regex):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
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_chans
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: 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
Project Name: idealo/image-super-resolution
Commit Name: 677467e2ae6a25911428540620b5e992cd64f482
Time: 2018-12-20
Author: testadicardi@gmail.com
File Name: src/predict/predict.py
Class Name: Predictor
Method Name: get_predictions