Skip to content

Commit

Permalink
BUGFIX: replace deprecated tag_for_name with tag_for_keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
gschramm committed Jun 29, 2020
1 parent 4d836d6 commit d02e361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymirc/fileio/write_dicom.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def write_dicom_slice(pixel_array, # 2D array in LP orientation

# add all key word arguments to dicom structure
for key, value in kwargs.items():
if dicom.datadict.tag_for_name(key) != None: setattr(ds,key,value)
if dicom.datadict.tag_for_keyword(key) != None: setattr(ds,key,value)
else: warnings.warn(key + ' not in standard dicom dictionary -> will not be written')

if verbose: print("Writing file", os.path.join(outputdir,filename))
Expand Down

0 comments on commit d02e361

Please sign in to comment.