make_manifest#

pypillometry.datasets.make_manifest(source, fname, token=None)[source]#

Write the manifest of a dataset (for adding a new dataset).

Lists all files of an OSF project or a figshare item, with their size, checksum and download URL, and writes them to fname (a TSV file). Datasets in pypillometry keep their manifest in pypillometry/datasets/manifests/<name>.tsv.

Parameters:
  • source (str) – "osf:<project id>" (e.g., "osf:db8qh") or "figshare:<item id>[/<version>]" (e.g., "figshare:28776617/1")

  • fname (str) – the TSV file to write

  • token (Optional[str]) – personal token for a private OSF project or figshare item (not written to the manifest); default: none (public)

Return type:

str

Returns:

fname

Examples

>>> make_manifest("osf:db8qh", "robison2022.tsv")
'robison2022.tsv'