bids-examples
bids-examples copied to clipboard
`venv` folder is present in `.gitignore` but not in skipped folders (`folders_to_skip`)
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"]