scverse_misc.datasets.Loader#
- class scverse_misc.datasets.Loader(*args, **kwargs)#
Function that can be annotated by
register_loader().
Methods#
- Loader.__call__(entry, target, download, /, **kwargs)#
Call
download(seeDownloadCB) and loadentry.- Parameters:
entry (
DatasetEntry) – File to download.target (
Path) – Loaded when it exists, otherwise it will be created.download (
DownloadCB) – Called whentargetdoesn’t exist.kwargs (
object) – Passed todownload.
- Return type:
TypeVar(T)