runtraj.execution.inputs.push#

runtraj.execution.inputs.push(directory, url, *, releases=True)[source]#

Copy a project’s inputs to url.

Copies config.yaml, releases.csv and, when the project has them, sites.csv and tables/. Files already at url are replaced; files there that the project no longer has are left.

Parameters:
  • directory (str | Path) – The project folder on this machine.

  • url (str) – Where to copy them, such as s3://bucket/projects/my_project.

  • releases (bool) – Copy releases.csv. A schedule leaves it out once the bucket has one, since each hour’s pod adds to the copy there.

Returns:

The files copied, relative to the project folder.

Return type:

list[str]

Raises:

FileNotFoundError – If directory has no config.yaml, or no releases.csv when releases is true.