Skip to content

Commit 0c33f1c

Browse files
committed
ss
1 parent 8892fff commit 0c33f1c

File tree

2 files changed

+18
-25
lines changed

2 files changed

+18
-25
lines changed

runExp.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,8 @@
1111

1212
# datasets = ["MFPT32","MFPT96","CWRbearings",'MFPTFFT32','MFPTFFT96']
1313

14-
datasets =["CW32Scalograms",
15-
"CW32Spectrograms",
16-
"CW96Scalograms",
17-
"MFPT32Scalograms",
18-
"MFPT32Spectrograms",
19-
"MFPT96Scalograms",
20-
"MFPT96Spectrogram"]
21-
14+
datasets =["MFPT96SpectrogramsV2",
15+
"MFPT32SpectrogramsV2"]
2216

2317

2418

utilRename.py

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,23 @@ def renameFolderList(nameOut,folderList,labelList,labelNames=None):
7171

7272

7373
if __name__ == "__main__":
74-
"C:/Users/andres/Desktop/New folder (2)/MFPT Data 32x32 Spectrograms"
75-
f1b = "C:/Users/andres/Desktop/New folder (2)/MFPT Data 96x96 Spectrograms/1 - Three Baseline Conditions"
76-
f2b = "C:/Users/andres/Desktop/New folder (2)/MFPT Data 96x96 Spectrograms/2 - Three Outer Race Fault Conditions"
77-
f3b = "C:/Users/andres/Desktop/New folder (2)/MFPT Data 96x96 Spectrograms/3 - Seven More Outer Race Fault Conditions"
78-
f4b = "C:/Users/andres/Desktop/New folder (2)/MFPT Data 96x96 Spectrograms/4 - Seven Inner Fault Conditions"
79-
80-
f1 = [os.path.join(f1b,elem) for elem in sorted(os.listdir(f1b))] #GET ALL SUB FOLDER
81-
f2 = [os.path.join(f2b,elem) for elem in sorted(os.listdir(f2b))] #GET ALL SUB FOLDER
82-
f3 = [os.path.join(f3b,elem) for elem in sorted(os.listdir(f3b))] #GET ALL SUB FOLDER
83-
f4 = [os.path.join(f4b,elem) for elem in sorted(os.listdir(f4b))] #GET ALL SUB FOLDER
84-
85-
folderL = f1 + f2 + f3 + f4
86-
labelL = [1,1,1,
87-
0,0,0,
88-
0,0,0,0,0,0,0,
89-
2,2,2,2,2,2,2]
74+
"C:/Users/andres/Desktop/New folder (2)/MFPT Data 96x96 Spectrograms"
75+
f1b = "/home/andres/Desktop/Untitled Folder/MFPT Data 96x96 Spectrograms/MFPT Data 96x96 Spectrograms/OR"
76+
f2b = "/home/andres/Desktop/Untitled Folder/MFPT Data 96x96 Spectrograms/MFPT Data 96x96 Spectrograms/N"
77+
f3b = "/home/andres/Desktop/Untitled Folder/MFPT Data 96x96 Spectrograms/MFPT Data 96x96 Spectrograms/IR"
78+
79+
# f1 = [os.path.join(f1b,elem) for elem in sorted(os.listdir(f1b))] #GET ALL SUB FOLDER
80+
# f2 = [os.path.join(f2b,elem) for elem in sorted(os.listdir(f2b))] #GET ALL SUB FOLDER
81+
# f3 = [os.path.join(f3b,elem) for elem in sorted(os.listdir(f3b))] #GET ALL SUB FOLDER
82+
# f4 = [os.path.join(f4b,elem) for elem in sorted(os.listdir(f4b))] #GET ALL SUB FOLDER
83+
#
84+
# folderL = f1 + f2 + f3 + f4
85+
86+
folderL = [f1b , f2b , f3b ]
87+
88+
labelL = [0,1,2]
9089
lN = {0 : "Outer", 1 : "Baseline",2 : "Inner"}
9190

9291
#OutFolderName, listOfFolderToLabel, CorrespondingLabels, Optional Label names
93-
renameFolderList('MFPTFFT96', folderL, labelL, labelNames=lN)
92+
renameFolderList('MFPT96SpectrogramsV2', folderL, labelL, labelNames=lN)
9493

0 commit comments

Comments
 (0)