diff options
Diffstat (limited to 'Metrics/Metrics-Calculation/metrics_plot/src/readCSV.py')
-rw-r--r-- | Metrics/Metrics-Calculation/metrics_plot/src/readCSV.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Metrics/Metrics-Calculation/metrics_plot/src/readCSV.py b/Metrics/Metrics-Calculation/metrics_plot/src/readCSV.py index 8627ad4a..e0402519 100644 --- a/Metrics/Metrics-Calculation/metrics_plot/src/readCSV.py +++ b/Metrics/Metrics-Calculation/metrics_plot/src/readCSV.py | |||
@@ -73,12 +73,12 @@ def getmetrics(filename): | |||
73 | # | 73 | # |
74 | # read number of files in the given path RANDOMLY | 74 | # read number of files in the given path RANDOMLY |
75 | # | 75 | # |
76 | def readmultiplefiles(dirName, numberOfFiles, shouldShuffle = True): | 76 | def readmultiplefiles(dirName, maxNumberOfFiles, shouldShuffle = True): |
77 | list_of_files = glob.glob(dirName + '*.csv') # create the list of file | 77 | list_of_files = glob.glob(dirName + '*.csv') # create the list of file |
78 | if shouldShuffle: | 78 | if shouldShuffle: |
79 | random.shuffle(list_of_files) | 79 | random.shuffle(list_of_files) |
80 | #if the number of files is out of bound then just give the whole list | 80 | #if the number of files is out of bound then just give the whole list |
81 | file_names = list_of_files[:numberOfFiles] if numberOfFiles > len(list_of_files) else list_of_files | 81 | file_names = list_of_files[:maxNumberOfFiles] |
82 | # print(file_names) | 82 | # print(file_names) |
83 | return file_names | 83 | return file_names |
84 | 84 | ||