@@ -23,7 +23,7 @@ def read_nifti_image(nifti_infile):
2323 """
2424
2525 import nibabel as nb
26- from qap_utils import raise_smart_exception
26+ from qap . qap_utils import raise_smart_exception
2727
2828 try :
2929 nifti_img = nb .load (nifti_infile )
@@ -45,7 +45,7 @@ def write_nifti_image(nifti_img, file_path):
4545 """
4646
4747 import nibabel as nb
48- from qap_utils import raise_smart_exception
48+ from qap . qap_utils import raise_smart_exception
4949
5050 try :
5151 nb .save (nifti_img , file_path )
@@ -66,7 +66,7 @@ def read_json(json_filename):
6666
6767 import os
6868 import json
69- from qap_utils import raise_smart_exception
69+ from qap . qap_utils import raise_smart_exception
7070
7171 if not os .path .exists (json_filename ):
7272 err = "\n \n [!] The JSON file provided does not exist.\n Filepath: " \
@@ -135,7 +135,7 @@ def load_image(image_file):
135135
136136 import nibabel as nib
137137 import numpy as np
138- from qap_utils import raise_smart_exception
138+ from qap . qap_utils import raise_smart_exception
139139
140140 try :
141141 img = nib .load (image_file )
@@ -180,7 +180,7 @@ def load_mask(mask_file, ref_file):
180180 import nibabel as nib
181181 import numpy as np
182182
183- from qap_utils import raise_smart_exception
183+ from qap . qap_utils import raise_smart_exception
184184
185185 try :
186186 mask_img = nib .load (mask_file )
@@ -229,7 +229,7 @@ def create_anatomical_background_mask(anatomical_data, fg_mask_data,
229229 :return bg_mask_data: Background mask data in Nibabel format.
230230 """
231231
232- from qap_utils import raise_smart_exception
232+ from qap . qap_utils import raise_smart_exception
233233
234234 # invert the foreground mask
235235 try :
0 commit comments