MCPcopy Index your code
hub / github.com/Project-MONAI/MONAI / create_input_file

Function create_input_file

tests/integration/test_mapping_filed.py:33–37  ·  view source on GitHub ↗
(temp_dir, name)

Source from the content-addressed store, hash-verified

31
32
33def create_input_file(temp_dir, name):
34 test_image = np.random.rand(128, 128, 128)
35 input_file = os.path.join(temp_dir, name + ".nii.gz")
36 nib.save(nib.Nifti1Image(test_image, np.eye(4)), input_file)
37 return input_file
38
39
40# Test cases that should succeed

Callers 1

run_testMethod · 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…