pep8 and pylinting
@@ -29,6 +29,7 @@ import pydicom
from .._level0.libutils import get_imports
IMPORTS = get_imports(globals())
+
def dicom_anon(dcm, delete_private_tags=True, tags_to_keep=[]):
r"""A simple tool to anonymise a DICOM file.
@@ -60,7 +61,8 @@ def dicom_anon(dcm, delete_private_tags = True, tags_to_keep = []):
# Is this a pydicom FileDataset?
if not isinstance(dcm, pydicom.dataset.FileDataset):
- raise TypeError("The input argument is a member of {}. " +
+ raise TypeError(
+ "The input argument is a member of {}. "
"It must be a pydicom FileDataset.".format(type(dcm)))
tags_to_anonymise = ["StudyDate",
