Store
store
#
IndexedDatasets
#
IndexedDatasets(path: pathlib.Path | str | None = None, force_download: bool = False)
Read-only accessor for the indexed_datasets directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
pathlib.Path | str | None
|
Path to the |
None
|
|
bool
|
If true, the indexed datasets will be downloaded even if they already exist. |
False
|
Source code in src/imgnet/collections/store.py
collections
property
#
Collection names derived from subdirectories of .imgtools/.
get_collection
#
get_collection(name: str) -> imgnet.collections.store.Collection
Return a cached Collection for the given name. Validates that the collection exists.
Source code in src/imgnet/collections/store.py
crawl_db
#
index
#
source_config
#
Return the validated source.json for collection.
Falls back to TCIASource() (DICOM/TCIA defaults) when no
source.json exists, keeping backwards compatibility with
collections that predate this file.
Source code in src/imgnet/collections/store.py
file_type
#
collection_size
#
description
#
supported_query_tags
#
Return supported query tags per modality for collection.
downloader
#
downloader(collection: str) -> imgnet.download.base.BaseDownloader
summary
#
Parsed collections_summary.json, or None if it doesn't exist.
Source code in src/imgnet/collections/store.py
Collection
#
Source code in src/imgnet/collections/store.py
source_config
cached
property
#
Return the validated source config. Falls back to TCIASource() when source.json is missing.
build_summary_entry
#
Build the summary dict for this collection (Modalities, BodyPartsExamined, Images, Size, etc.).