Skip to content

Commit

Permalink
sync from dataset_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Sep 11, 2024
1 parent 953cf0f commit 34b28ee
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions petric.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,18 +247,19 @@ def get_image(fname):


if SRCDIR.is_dir():
# create list of existing data
# create list of existing data (vis. SIRF_data_preparation/dataset_settings.py)
# NB: `MetricsWithTimeout` initialises `SaveIters` which creates `outdir`
data_dirs_metrics = [(SRCDIR / "Siemens_mMR_NEMA_IQ", OUTDIR / "mMR_NEMA",
[MetricsWithTimeout(outdir=OUTDIR / "mMR_NEMA", transverse_slice=72, coronal_slice=109)]),
(SRCDIR / "NeuroLF_Hoffman_Dataset", OUTDIR / "NeuroLF_Hoffman",
[MetricsWithTimeout(outdir=OUTDIR / "NeuroLF_Hoffman", transverse_slice=72)]),
(SRCDIR / "Siemens_Vision600_thorax", OUTDIR / "Vision600_thorax",
[MetricsWithTimeout(outdir=OUTDIR / "Vision600_thorax")]),
(SRCDIR / "Siemens_mMR_ACR", OUTDIR / "mMR_ACR",
[MetricsWithTimeout(outdir=OUTDIR / "mMR_ACR")]),
(SRCDIR / "Mediso_NEMA_IQ", OUTDIR / "Mediso_NEMA",
[MetricsWithTimeout(outdir=OUTDIR / "Mediso_NEMA")]),
data_dirs_metrics = [
(SRCDIR / "Siemens_mMR_NEMA_IQ", OUTDIR / "mMR_NEMA",
[MetricsWithTimeout(outdir=OUTDIR / "mMR_NEMA", transverse_slice=72, coronal_slice=109)]),
(SRCDIR / "NeuroLF_Hoffman_Dataset", OUTDIR / "NeuroLF_Hoffman",
[MetricsWithTimeout(outdir=OUTDIR / "NeuroLF_Hoffman", transverse_slice=72)]),
(SRCDIR / "Siemens_Vision600_thorax", OUTDIR / "Vision600_thorax",
[MetricsWithTimeout(outdir=OUTDIR / "Vision600_thorax")]),
(SRCDIR / "Siemens_mMR_ACR", OUTDIR / "mMR_ACR",
[MetricsWithTimeout(outdir=OUTDIR / "mMR_ACR", transverse_slice=99)]),
(SRCDIR / "Mediso_NEMA_IQ", OUTDIR / "Mediso_NEMA",
[MetricsWithTimeout(outdir=OUTDIR / "Mediso_NEMA", transverse_slice=22, coronal_slice=89, sagittal_slice=66)]),
]
else:
log.warning("Source directory does not exist: %s", SRCDIR)
Expand Down

0 comments on commit 34b28ee

Please sign in to comment.