neuralfetch.utils.update_source_info

neuralfetch.utils.update_source_info(name: str, folder: str | Path | None = None) dict[str, Any][source][source]

Compute actual StudyInfo values, rewrite the source file, and run ruff format.

If folder is None, uses the default study folder (or cache folder for test/fake studies). Returns the computed values dict.

Usage:

python -c "from neuralfetch.utils import update_source_info; update_source_info('StudyName')"