xnn.common.models.hub.zenodo.choose#
- xnn.common.models.hub.zenodo.choose(record_files, filename, suffixes, recid)[source]#
Pick the model file of a record.
- Parameters:
- Returns:
The chosen file entry.
- Return type:
- Raises:
FileNotFoundError – If
filenameis not in the record, or nothing looks like a model.ValueError – If several files could be the model and no
filenamewas given.