X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Futils.py;h=df543c17ea3c437146a82334a2a68f4e253a553c;hb=3c510d8dd18bd8ceb2c5d86ed058976e72ddead4;hp=f118afca1dd7290ab94360d9e7c3cf2ad2d5e219;hpb=0a8855adbb30a6079a538bea179a13988fdc20c0;p=csit.git diff --git a/resources/tools/presentation/utils.py b/resources/tools/presentation/utils.py index f118afca1d..df543c17ea 100644 --- a/resources/tools/presentation/utils.py +++ b/resources/tools/presentation/utils.py @@ -87,7 +87,7 @@ def remove_outliers(input_list, outlier_const=1.5, window=14): iqr = (upper_quartile - lower_quartile) * outlier_const quartile_set = (lower_quartile - iqr, upper_quartile + iqr) result_lst = list() - for y in data.tolist(): + for y in input_list: if quartile_set[0] <= y <= quartile_set[1]: result_lst.append(y) return result_lst @@ -140,7 +140,7 @@ def get_files(path, extension=None, full_path=True): :param path: Path to files. :param extension: Extension of files to process. If it is the empty string, - all files will be processed. + all files will be processed. :param full_path: If True, the files with full path are generated. :type path: str :type extension: str