neuromaps.datasets.upload_annotation

neuromaps.datasets.upload_annotation(files, user, osf_token=None, nmweb_token=None)[source]

Workflow for contributing new brain annotation files to neuromaps

Parameters
  • files (str or os.PathLike or tuple) – File(s) to be contributed

  • user (str) – E-mail address that can be used to contact you in case the neuromaps maintainers have questions about the uploaded files. Default: None

  • osf_token (str, optional) – Personal access token with authorization to OSF repository. Only needed if trying to upload files large than 30 MB. Default: None

  • nmweb_token (str, optional) – Personal access token for neuromaps-web server. If provided (and authorized) a PR will be created automatically. Default: None

Returns

response – Response object from neuromaps-web API

Return type

requests.Response