-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
converter.py - cleaned up code and improved readability. This encompasses formatting fixes and removing unneeded code segments such as the determination of labels in save_dicom_from_nifti_seg() and and the unused attribute vendor in save_slice(). The vendor check for 3D images was also removed as this always evaluated to True in the implementation and was not determinsitic for the behaviour of the code. - improved variable and attribute names - renamed load_reference_dicom_series() to load_dicom_series() - added an optional parameter to save_slice() and save_dicom_from_nifti_image() to copy header information from a second dicom series to the header of the reference series. This is useful when processing on the nifti image was done and the reference header contains the spatial information, wheres the second header contains the actual study information. setup.py - raised version to 1.1.5 constants.py - added TAGS_TO_EXCLUDE to constants.py. These tags will not be copied to the spatial reference header.
- Loading branch information
Showing
3 changed files
with
75 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters