(temp_dir, name)
| 28 | |
| 29 | |
| 30 | def create_input_file(temp_dir, name): |
| 31 | test_image = np.random.rand(128, 128, 128) |
| 32 | output_ext = ".nii.gz" |
| 33 | input_file = os.path.join(temp_dir, name + output_ext) |
| 34 | nib.save(nib.Nifti1Image(test_image, np.eye(4)), input_file) |
| 35 | return input_file |
| 36 | |
| 37 | |
| 38 | def create_transform(temp_dir, mapping_file_path, savepath_in_metadict=True): |
no test coverage detected
searching dependent graphs…