-
Notifications
You must be signed in to change notification settings - Fork 67
Closed
Labels
discussionThis is a discussion thread for enhancementsThis is a discussion thread for enhancementsdocumentation
Description
something like this1 (for use in notebook demos such as TomographicImaging/CIL-Demos#144):
data = cil.datasets.walnut.load()btw internal logic could be roughly:
class Dataset:
cache = os.getenv("CIL_DATASETS", "~/.cache/cil")
@classmethod
def load(cls):
filename = brainweb.get_file(
cls.source.rsplit("/", 1)[-1],
cls.source,
cache_dir=cls.cache)
if filename.endswith(".zip"):
return cls.load_from_zip(filename)
raise ValueError(f"{filename}: unknown extension")
class walnut(Dataset):
source = "https://zenodo.org/record/4822516/files/walnut.zip"Footnotes
-
loosely inspired by https://keras.io/api/datasets approach ↩
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
discussionThis is a discussion thread for enhancementsThis is a discussion thread for enhancementsdocumentation