From 70fe57a7f8763ebd6ca605a1b63a13a61bbae04e Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Wed, 7 Sep 2022 16:17:08 +0100 Subject: [PATCH] Fix use of Path in find_outliers script. You may or may not need this pull-request. There was a bug in the file `scripts/find_outliers.py` where the code uses a `fname` expecting a string, but in fact, by default, it will get a `Path` object. You may have found and fixed that bug, in which case, you do not need this PR. If you haven't already found and fixed this bug, then do merge this pull request. --- scripts/find_outliers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/find_outliers.py b/scripts/find_outliers.py index baec116..b92fa2a 100644 --- a/scripts/find_outliers.py +++ b/scripts/find_outliers.py @@ -25,7 +25,7 @@ def print_outliers(data_directory): outlier_strs = [] for out_ind in outliers: outlier_strs.append(str(out_ind)) - print(', '.join([fname] + outlier_strs)) + print(', '.join([str(fname)] + outlier_strs)) def get_parser():