bids-examples icon indicating copy to clipboard operation
bids-examples copied to clipboard

`venv` folder is present in `.gitignore` but not in skipped folders (`folders_to_skip`)

Open chourroutm opened this issue 7 months ago • 0 comments

As venv folder is present in .gitignore but not in skipped folders (folders_to_skip), I get this error:

Traceback (most recent call last):
  File "D:\User\bids-xpct-example\tools\print_dataset_listing.py", line 163, in <module>
    main()
  File "D:\User\bids-xpct-example\tools\print_dataset_listing.py", line 56, in main
    check_missing_folders(df, root)
  File "D:\User\bids-xpct-example\tools\print_dataset_listing.py", line 75, in check_missing_folders
    raise ValueError(
ValueError: Found 77 folders but 76 datasets in the table:missing {'venv'} folders

It can be fixed by changing https://github.com/bids-standard/bids-examples/blob/401f4cfc0709be0e39c32766b79894160a8a3e45/tools/print_dataset_listing.py#L12 to:

folders_to_skip = ["docs", ".git", ".github", "tools", "env", "venv", "site"]

chourroutm avatar Jul 26 '24 15:07 chourroutm