Data Downloads

Helpers for downloading and verifying optional example datasets used by the tutorials and experiments.

Module Reference

Dataset download and verification helpers.

Only Slicer-Heart-CT is downloaded automatically. Other datasets require manual download, and the verification helpers check the file layouts used by the repository tutorials, experiments, and tests.

class physiomotion4d.data_download_tools.DataDownloadTools[source]

Bases: object

Download and verify optional PhysioMotion4D example datasets.

SLICER_HEART_CT_URL = 'https://github.com/SlicerHeart/SlicerHeart/releases/download/TestingData/TruncalValve_4DCT.seq.nrrd'
SLICER_HEART_CT_FILENAME = 'TruncalValve_4DCT.seq.nrrd'
static DownloadSlicerHeartCTData(dirname)[source]

Download the Slicer-Heart-CT 4-D CT sample into dirname.

Parameters:

dirname (Union[str, Path]) – Directory where TruncalValve_4DCT.seq.nrrd should live.

Return type:

Path

Returns:

Path to the downloaded or already-cached .seq.nrrd file.

static VerifySlicerHeartCTData(dirname)[source]

Return True when Slicer-Heart-CT has the expected 4-D CT file.

Return type:

bool

static VerifyCHOPValve4DData(dirname)[source]

Return True when CHOP-Valve4D files referenced by the repo exist.

Accepted layouts are the CT volume used by Simpleware/model-to-patient experiments and the valve time-series folders used by VTK-to-USD experiments.

Return type:

bool

static VerifyDirLab4DCTData(dirname)[source]

Return True when a supported DirLab-4DCT case layout exists.

Return type:

bool

static VerifyKCLHeartModelData(dirname)[source]

Return True when KCL-Heart-Model has its expected mesh inputs.

Return type:

bool

Navigation

Test Tools | Utility Modules