dbdicom.Record.files#

Record.files() list[source]#

Return a list of all DICOM files saved in the database

Returns:

A list of absolute filepaths to valid DICOM files

Return type:

list

Example

A new database in memory has no files on disk:

>>> database = db.database()
>>> print(database.files())
[]

If a series is created in memory, there are no files on disk:

>>> series = db.zeros((3,128,128))
>>> print(series.files())
[]

If a series is created in memory, then written to disk, there are files associated. Since the default format is single-frame MRImage, there are 3 files in this case:

>>> series.write('path\to\DICOM\database')
>>> print(series.files())
['path\to\DICOM\database\dbdicom\1.2.826.0.1.3680043.8.498.10200622747714198480020099226433338888.dcm', 'path\to\DICOM\database\dbdicom\1.2.826.0.1.3680043.8.498.95074529334441498207488699470663781148.dcm', 'path\to\DICOM\database\dbdicom\1.2.826.0.1.3680043.8.498.30452523525370800574103459899629273584.dcm']