name = os.path.split(fp)[1]
name = re.sub(r" [LR]\d*\.txt", "", name).replace(".txt", "")
name = re.sub(r" //\d$", "", name)
name = name.replace(".mdat", "")
if name not in file_paths:
file_paths[name] = []
file_paths[name].append(fp)
return file_paths
After Change
):
// Remove IEM rig measurements if Ears-711 or GRAS measurements exist
// This means the headphone is onear model and the files found in IEM folder are duplicates
del rigs_and_file_paths["iem"]
return file_paths
def process(self, item, file_paths, target_dir=None):