File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
brats/preprocessing/project Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 5
5
import yaml
6
6
import numpy as np
7
7
import nibabel as nib
8
+ from shutil import copyfile
8
9
from tqdm import tqdm
9
10
10
11
@@ -92,9 +93,13 @@ def main():
92
93
with open (args .parameters_file , "r" ) as f :
93
94
params = yaml .full_load (f )
94
95
95
- images_arr = get_data_arr (args .data_path )
96
- save_processed_data (args .output_path , params ["output_filename" ], images_arr )
97
-
96
+ #images_arr = get_data_arr(args.data_path)
97
+ #save_processed_data(args.output_path, params["output_filename"], images_arr)
98
+ input_file = os .path .normpath (args .data_path + "/BraTS_example_seg.nii.gz" )
99
+ output_file = os .path .normpath (args .output_path + "/BraTS_example_seg.nii.gz" )
100
+ print (input_file )
101
+ print (output_file )
102
+ copyfile (input_file , output_file )
98
103
99
104
if __name__ == "__main__" :
100
105
main ()
You can’t perform that action at this time.
0 commit comments