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 55import yaml
66import numpy as np
77import nibabel as nib
8+ from shutil import copyfile
89from tqdm import tqdm
910
1011
@@ -92,9 +93,13 @@ def main():
9293 with open (args .parameters_file , "r" ) as f :
9394 params = yaml .full_load (f )
9495
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 )
98103
99104if __name__ == "__main__" :
100105 main ()
You can’t perform that action at this time.
0 commit comments