floatcsep.model.Model.get_source

Model.get_source(zenodo_id=None, giturl=None, force=False, **kwargs)[source]

Search, download or clone the model source in the filesystem, zenodo and git, respectively. Identifies if the instance path points to a file or to its parent directory

Parameters:
  • zenodo_id (int) – Zenodo identifier of the repository. Usually as https://zenodo.org/record/{zenodo_id}

  • giturl (str) – git remote repository URL from which to clone the source

  • force (bool) – Forces to re-query the model from a web repository

  • **kwargs – see from_zenodo() and from_git()