Skip to content

Commit

Permalink
Merge pull request #271 from anbhimi/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
pradeeban authored Mar 8, 2022
2 parents fbba819 + be2af07 commit 9f01342
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/png-extraction/ImageExtractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ def extract_headers(f_list_elem):
# dicom images should not have more than 300 dicom tags
if len(kv)>300:
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
else:
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:
# adds my custom category field - useful if classifying images before processing
kv.append(('category','uncategorized'))
Expand Down

0 comments on commit 9f01342

Please sign in to comment.