pydicom.filewriter.write_dataset

pydicom.filewriter.write_dataset(fp, dataset, parent_encoding='iso8859')

Write a Dataset dictionary to the file. Return the total length written.