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_STORE
handler using theEvent.dataset_path
attribute. This should minimise the amount of memory required when:Receiving large datasets
Receiving many datasets concurrently
Default:
False
Examples
>>> from pynetdicom import _config >>> _config.STORE_RECV_CHUNKED_DATASET = True