Skip to content

Commit

Permalink
Merge pull request #33 from Jammy2211/feature/visualise_specific
Browse files Browse the repository at this point in the history
allow more specific match for what should be visualised
  • Loading branch information
Jammy2211 authored Nov 5, 2024
2 parents 05e350d + 74d8d38 commit a910da2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions autobuild/build_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,15 @@ def execute_notebooks_in_folder(
print(f"Found {len(files)} notebooks")

for file in sorted(files):
if visualise_list is not None and file.stem not in visualise_list:
continue
if visualise_list is not None:
without_suffix = str(file.with_suffix(""))
if not any(
map(
without_suffix.endswith,
visualise_list,
)
):
continue
if file.stem not in no_run_list:
execute_notebook(file)

Expand Down

0 comments on commit a910da2

Please sign in to comment.