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

Method close

monai/data/dataset.py:726–730  ·  view source on GitHub ↗

Close the read environment and set it to None, if it exists.

(self)

Source from the content-addressed store, hash-verified

724 return out
725
726 def close(self):
727 """Close the read environment and set it to None, if it exists."""
728 if self._read_env:
729 self._read_env.close()
730 self._read_env = None
731
732
733class CacheDataset(Dataset):

Callers 15

set_dataMethod · 0.95
infoMethod · 0.95
test_shapeMethod · 0.95
readMethod · 0.45
__exit__Method · 0.45
__init__Method · 0.45
_cachecheckMethod · 0.45
warmup_kvikioMethod · 0.45
warmup_kvikioMethod · 0.45
save_imageFunction · 0.45
make_nifti_imageFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_shapeMethod · 0.76
make_nifti_imageFunction · 0.36
test_scripts_foldMethod · 0.36
run_training_testFunction · 0.36
test_valuesMethod · 0.36
test_fileMethod · 0.36
test_fileMethod · 0.36
test_task_initMethod · 0.36
test_metrics_printMethod · 0.36