Datasets¶
Registry operations are explicitly network-capable. Dataset loading validates the generic measurement manifest and returns the same model and measurement objects used elsewhere in the API. See the dataset guide for the on-disk contract and provenance policy.
DatasetRegistryEntry
¶
DatasetRegistry
¶
DatasetRegistry(
*,
registry_url: str | None = None,
cache_dir: Path | None = None,
)
Discover, verify, cache, and open datasets from a JSON registry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
registry_url
|
str | None
|
Registry JSON URL. |
None
|
cache_dir
|
Path | None
|
Managed cache directory. |
None
|
Notes
Listing may fetch registry metadata. Download and open may access the
network; an already cached dataset is verified before use.
list
¶
list() -> list[DatasetRegistryEntry]
Return registry entries annotated with their local cache state.
download
¶
download(id: str) -> Path
Download, checksum-verify, extract, and return one dataset directory.
download_all
¶
Download and verify every registry entry, returning local directories.
Dataset
¶
Loaded measurements, models, optional truth, and provenance.
Dataset loading validates the manifest and array shapes before returning this object. Arrays are exposed using the same conventions as the core API.
measurements
property
¶
measurements: MeasurementStack
Return the resident measured-intensity stack.
true_model
property
¶
true_model: ImagePlaneModel
Return the acquisition model, including known simulated errors.
reconstruction_model
property
¶
reconstruction_model: ImagePlaneModel
Return the model intended for reconstruction.
ground_truth_object
property
¶
ground_truth_object: ComplexArray | None
Return the complex ground-truth field when supplied by the dataset.
valid_object_mask
property
¶
valid_object_mask: MaskArray | None
Return the optional valid-pixel mask for object-space evaluation.
provenance
property
¶
provenance: Mapping[str, str]
Return immutable acquisition and source provenance fields.
measurement_units
property
¶
measurement_units: str | None
Return the declared units of measured intensities, if present.
reconstruction_problem
¶
reconstruction_problem() -> ReconstructionProblem
Build a validated problem from the dataset measurements and model.
open_dataset
¶
open_dataset(
id: str,
*,
registry_url: str | None = None,
cache_dir: Path | None = None,
) -> Dataset
Open a registered dataset using a temporary
DatasetRegistry.
Parameters are equivalent to DatasetRegistry;
id is the exact
registry identifier. The dataset is downloaded if no verified cached copy
is available.