Skip to content
Snippets Groups Projects
Commit 68c37f62 authored by Tamino Huxohl's avatar Tamino Huxohl
Browse files

fix mu map dataset to new header

parent 8a9d722e
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ import pydicom
import numpy as np
from torch.utils.data import Dataset
from mu_map.data.prepare import headers
from mu_map.data.remove_bed import DEFAULT_BED_CONTOURS_FILENAME, load_contours
from mu_map.data.review_mu_map import discard_slices
......@@ -69,8 +70,8 @@ class MuMapDataset(Dataset):
def __getitem__(self, index: int):
row = self.table.iloc[index]
recon_file = os.path.join(self.dir_images, row["file_recon_no_ac"])
mu_map_file = os.path.join(self.dir_images, row["file_mu_map"])
recon_file = os.path.join(self.dir_images, row[header.file_recon_nac_nsc])
mu_map_file = os.path.join(self.dir_images, row[headers.file_mu_map])
recon = pydicom.dcmread(recon_file).pixel_array
mu_map = pydicom.dcmread(mu_map_file).pixel_array
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment