dbdicom.edit#

dbdicom.edit(series: list, new_values: dict, dims: list | None = None, verbose=1)[source]#

Edit attribute values in a DICOM series

Warning: this function edits all values as requested. Please take care when editing attributes that affect the DICOM file organisation, such as UIDs, as this could corrupt the database.

Parameters:
  • series (list) – DICOM series to edit

  • new_values (dict) – dictionary with attribute: value pairs to write to the series

  • dims (list, optional) – Non-spatial dimensions of the volume. Defaults to None.

  • verbose (bool, optional) – If set to 1, shows progress bar. Defaults to 1.