예제 #1
0
 def load_building_names(self, root_directory):
     dirs = get_immediate_subdirectories(root_directory)
     pattern = re.compile('home[A-Z].*')
     dirs = [dir for dir in dirs if pattern.match(dir)]
     dirs.sort()
     return dirs
예제 #2
0
파일: pecan.py 프로젝트: magusverma/nilmtk
 def load_building_names(self, root_directory):
     dirs = get_immediate_subdirectories(
         os.path.join(root_directory, "1_min"))
     return dirs
예제 #3
0
 def load_building_names(self, root_directory):
     dirs = get_immediate_subdirectories(root_directory)
     pattern = re.compile('house_[0-9]*')
     dirs = [dir for dir in dirs if pattern.match(dir)]
     dirs.sort()
     return dirs
예제 #4
0
파일: pecan.py 프로젝트: magusverma/nilmtk
 def load_building_names(self, root_directory):
     dirs = get_immediate_subdirectories(os.path.join(root_directory,
                                                     "1_min"))
     return dirs