bids.config.from_file

from_file(filenames, error_on_missing=True)[source]

Load package-wide settings from specified file(s).

Parameters:
  • filenames (str, list) – Filename or list of filenames containing JSON dictionary of settings.

  • error_on_missing (bool) – If True, raises an error if a file doesn’t exist.