File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 11# TODO add typing and docs
22from abc import abstractmethod
3+ from pathlib import Path
34from shutil import copyfile
45
56from auxiliary .nifti .io import read_nifti , write_nifti
@@ -82,13 +83,10 @@ def extract(
8283 )
8384
8485 hdbet_mask_path = (
85- masked_image_path .parent
86- + "/"
87- + name_extractor (masked_image_path )
88- + "_mask.nii.gz"
86+ Path (masked_image_path ).parent
87+ / f"{ name_extractor (masked_image_path )} _mask.nii.gz"
8988 )
90-
91- if hdbet_mask_path != brain_mask_path :
89+ if hdbet_mask_path .resolve () != Path (brain_mask_path ).resolve ():
9290 copyfile (
9391 src = hdbet_mask_path ,
9492 dst = brain_mask_path ,
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ nibabel = "^3.2.1"
5050numpy = " ^1.23.0"
5151
5252# hd-bet reqs
53- BrainLes-HD-BET = " >=0.0.5"
53+ brainles_hd_bet = " * " # = ">=0.0.5"
5454
5555# utils
5656tqdm = " ^4.64.1"
You can’t perform that action at this time.
0 commit comments