Skip to content

Commit 05b1482

Browse files
committed
- add missing docstring
1 parent 7073d46 commit 05b1482

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

AURORA/utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ def visualize_data(data_folder: str = DATA_FOLDER, slice_index: int = 75):
2424

2525

2626
def visualize_segmentation(modality_file: str, segmentation_file: str):
27+
"""Visualize the MRI modality and the segmentation
28+
29+
Args:
30+
modality_file (str): Path to the desired modality file
31+
segmentation_file (str): Path to the segmentation file
32+
"""
2733
modality_np = nib.load(modality_file).get_fdata().transpose(2, 1, 0)
2834
seg_np = nib.load(segmentation_file).get_fdata().transpose(2, 1, 0)
2935
_, ax = plt.subplots(1, 2, figsize=(8, 4))

0 commit comments

Comments
 (0)