pynetdicom._config.STORE_RECV_CHUNKED_DATASET#
- pynetdicom._config.STORE_RECV_CHUNKED_DATASET: bool = False#
Chunk a dataset file when receiving it to minimise memory usage.
Added in version 2.0.
If
True, then when receiving C-STORE requests as an SCP, don’t decode the dataset and instead write the raw data to a temporary file in the DICOM File Format. The path to the dataset is available to theevt.EVT_C_STOREhandler using theEvent.dataset_pathattribute. This should minimise the amount of memory required when:Receiving large datasets
Receiving many datasets concurrently
Default:
FalseExamples
>>> from pynetdicom import _config >>> _config.STORE_RECV_CHUNKED_DATASET = True