Skip to content

Commit 334da3b

Browse files
authored
Merge pull request #66 from BrainLesion/65-bug-the-center-modality-is-not-skullstripped
65-bug-the-center-modality-is-not-skullstripped
2 parents e168a7a + 9f3e97a commit 334da3b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

brainles_preprocessing/modality.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,15 @@ def __init__(
9898
else:
9999
self.normalized_skull_output_path = normalized_skull_output_path
100100

101+
# print("self.raw_bet_output_path", self.raw_bet_output_path)
102+
# print("self.normalized_skull_output_path", self.normalized_skull_output_path)
103+
# print("self.bet:", self.bet)
104+
101105
@property
102106
def bet(self) -> bool:
103107
return any(
104108
path is not None
105-
for path in [self.raw_bet_output_path, self.normalized_skull_output_path]
109+
for path in [self.raw_bet_output_path, self.normalized_bet_output_path]
106110
)
107111

108112
def normalize(
@@ -290,6 +294,7 @@ def save_current_image(
290294
)
291295
elif normalization is True:
292296
image = read_nifti(self.current)
297+
print("current image", self.current)
293298
normalized_image = self.normalizer.normalize(image=image)
294299
write_nifti(
295300
input_array=normalized_image,

brainles_preprocessing/preprocessor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ def run(
216216

217217
# Optional: Brain extraction
218218
brain_extraction = any(modality.bet for modality in self.all_modalities)
219+
# print("brain extraction: ", brain_extraction)
219220

220221
if brain_extraction:
221222
bet_dir = os.path.join(self.temp_folder, "brain-extraction")

0 commit comments

Comments
 (0)