Skip to content

Commit

Permalink
Merge pull request #241 from anbhimi/dev
Browse files Browse the repository at this point in the history
Comment and Logging Fix in line 147, 149
  • Loading branch information
pradeeban authored Nov 2, 2021
2 parents 2e75454 + bebfe87 commit 7768feb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/png-extraction/ImageExtractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ def extract_headers(f_list_elem):
except:
c = False
kv = get_tuples(plan) # gets tuple for field,val pairs for this file. function defined above
# dicom images should not have more than 300
# dicom images should not have more than 300 dicom tags
if len(kv)>500:
logging.debug(str(len(kv)) + " dicoms produced by " + ff)
logging.debug(str(len(kv)) + " dicom tags produced by " + ff)
kv.append(('file', f_list_elem[1])) # adds my custom field with the original filepath
kv.append(('has_pix_array',c)) # adds my custom field with if file has image
if c:
Expand Down

0 comments on commit 7768feb

Please sign in to comment.