Skip to content

Commit

Permalink
Fixing typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkiss authored Mar 18, 2024
1 parent db68412 commit 622f4e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LION/data_loaders/deteCT.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(
Tube power | 3W | 90W | 60W
Filter | Thoraeus | Thoraeus | No Filter
"""
# Defining the sinogram mode
# Defining the reconstruction mode
self.reconstruction_mode = parameters.reconstruction_mode
"""
The reconstruction_mode (str) argument is a keyword defining what image mode of the dataset to use:
Expand Down Expand Up @@ -312,7 +312,7 @@ def __getitem__(self, index):
path_to_sinogram = self.path_to_dataset.joinpath(
f"{slice_row['slice_identifier']}/{self.sinogram_mode}"
)
path_to_recontruction = self.path_to_dataset.joinpath(
path_to_reconstruction = self.path_to_dataset.joinpath(
f"{slice_row['slice_identifier']}/{self.reconstruction_mode}"
)
path_to_segmentation = self.path_to_dataset.joinpath(
Expand Down Expand Up @@ -363,7 +363,7 @@ def __getitem__(self, index):
reconstruction = fdk(op, sinogram)
else:
reconstruction = torch.from_numpy(
np.load(path_to_recontruction.joinpath("reconstruction.npy"))
np.load(path_to_reconstruction.joinpath("reconstruction.npy"))
).unsqueeze(0)
# Interpolate if geometry is not default
if self.geo.image_shape != self.get_default_geometry().image_shape:
Expand Down

0 comments on commit 622f4e9

Please sign in to comment.