From 95ba458d18eabe1ebc7f4832d8873d5b4321be21 Mon Sep 17 00:00:00 2001 From: Gabe Fierro Date: Tue, 2 Jul 2024 17:23:19 -0600 Subject: [PATCH] skip .ipynb_checkpoints when scanning for files --- buildingmotif/dataclasses/library.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildingmotif/dataclasses/library.py b/buildingmotif/dataclasses/library.py index 05858c972..a74c4ac6b 100644 --- a/buildingmotif/dataclasses/library.py +++ b/buildingmotif/dataclasses/library.py @@ -340,6 +340,9 @@ def _load_from_directory( # read all .yml files for file in directory.rglob("*.yml"): + # if .ipynb_checkpoints, skip; these are cached files that Jupyter creates + if ".ipynb_checkpoints" in file.parts: + continue lib._read_yml_file(file, template_id_lookup, dependency_cache) # now that we have all the templates, we can populate the dependencies lib._resolve_template_dependencies(template_id_lookup, dependency_cache)