pydicom.config.DS_numpy¶
- pydicom.config.DS_numpy(use_numpy: bool = True) None[source]¶
Set whether multi-valued elements with VR of DS will be numpy arrays
Added in version 2.0.
- Parameters:
use_numpy (bool, optional) –
True(default) to read multi-value DS elements asndarray,Falseto read multi-valued DS data elements as typeMultiValueNote: once a value has been accessed, changing this setting will no longer change its type
- Raises:
ValueError – If
use_DS_decimaland use_numpy are both True.