dbdicom.Record.export_as_dicom#

Record.export_as_dicom(path: str)[source]#

Export record in DICOM format to an external directory.

Note since this is exporting outside of the current database this will assign new identifiers to the exported data.

Parameters:

path (str) – path to export directory.

Example

Create a 4D series and export as DICOM

>>> series = db.ones((128, 128, 10, 5))
>>> path = 'path\to\empty\folder'
>>> series.export_as_dicom(path)

This should create a single folder in the directory, populated with 50 DICOM files.