From a73fa8fa48fa0c7171143b9d319e82d779693929 Mon Sep 17 00:00:00 2001 From: Anna Haensch Date: Fri, 12 Jul 2024 09:48:43 -0700 Subject: [PATCH] remove hidden files for subdir_list --- src/durham/get_and_parse_reports.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/durham/get_and_parse_reports.py b/src/durham/get_and_parse_reports.py index fde3673..c6f114d 100644 --- a/src/durham/get_and_parse_reports.py +++ b/src/durham/get_and_parse_reports.py @@ -220,8 +220,9 @@ def merge_reports_by_type(year): Prints merged reports by type (i.e. "arrests" or "incidents") to ../data/durham/2019/merged__.pdf. """ - dir_path = f"../../data/durham/{year}" + dir_path = f"../data/durham/{year}" subdir_path = [f for f in os.listdir(dir_path) if not isfile(join(dir_path,f))] + subdir_path = [f for f in subdir_path if f != '.ipynb_checkpoints'] subdir_path.sort() # Make temporaary folders