Skip to content

Commit

Permalink
BUG: Fix example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
pchoisel committed Oct 3, 2023
1 parent c0b6072 commit 3e51c82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ def main():
parser.add_argument('--suffix', action='store', help='Suffix that will be added at the end of series description')
args = parser.parse_args()

deletePrivateTags = False

input_dicom_path = args.input
output_dicom_path = args.output

Expand All @@ -175,14 +177,14 @@ def main():
# ALL_TAGS variable is defined on file dicomfields.py
# the 'keep' method is already defined into the dicom-anonymizer
# It will overrides the default behaviour
for i in allTags:
for i in ALL_TAGS:
extraAnonymizationRules[i] = keep

if args.suffix:
extraAnonymizationRules[(0x0008, 0x103E)] = setupSeriesDescription

# Launch the anonymization
anonymize(input_dicom_path, output_dicom_path, extraAnonymizationRules)
anonymize(input_dicom_path, output_dicom_path, extraAnonymizationRules, deletePrivateTags=deletePrivateTags)

if __name__ == "__main__":
main()
Expand Down

0 comments on commit 3e51c82

Please sign in to comment.