MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / create_input_file

Function create_input_file

tests/data/test_mapping_file.py:30–35  ·  view source on GitHub ↗
(temp_dir, name)

Source from the content-addressed store, hash-verified

28
29
30def 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
38def create_transform(temp_dir, mapping_file_path, savepath_in_metadict=True):

Callers 2

test_mapping_fileMethod · 0.70

Calls 1

saveMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…