diff --git a/dcmmeta2tsv.py b/dcmmeta2tsv.py index 9eaedef4..acd57bec 100755 --- a/dcmmeta2tsv.py +++ b/dcmmeta2tsv.py @@ -179,4 +179,4 @@ def read_dicom_tags(self, dcm_path: os.PathLike) -> TagValues: logging.info("processing %d dicom files", len(sys.argv) - 1) for dcm_path in sys.argv[1:]: all_tags = dtr.read_dicom_tags(dcm_path).values() - print("\t".join(all_tags)) + print("\t".join([str(x) for x in all_tags]))