We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e066203 commit 71a3ce4Copy full SHA for 71a3ce4
nibabel/tests/test_nifti1.py
@@ -1133,6 +1133,12 @@ def test_nifti_dicom_extension():
1133
assert_equal(dcmext.get_content().__class__, pydicom.dataset.Dataset)
1134
assert_equal(len(dcmext.get_content().values()), 0)
1135
1136
+ # create an empty dataset if no content provided (to write a new header)
1137
+ dcmext = Nifti1DicomExtension(2, None)
1138
+ assert_equal(dcmext.get_content().__class__, pydicom.dataset.Dataset)
1139
+ assert_equal(len(dcmext.get_content().values()), 0)
1140
+
1141
1142
# use a dataset if provided
1143
ds = pydicom.dataset.Dataset()
1144
ds.add_new((0x10, 0x20), 'LO', 'NiPy')
0 commit comments