You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many old recipes contain filter sections which only contain coordinates and do not contain keepcoordinates properties. The absence of keepcoordinates causes a KeyError exception when attempting to retrieve the keepcoordinates from the DICOMCleaner results (clean.py - line 153)
For 2-dimensional images, the cleaner falls into the else condition (clean.py - line 201) which causes no pixel masking to be performed and an exception to be thrown because self.original.shape is not converted to a string prior to being used in the format statement.
I've committed proposed fixes in this commit. Let me know if you have any suggestions on this. It's the first I've looked at pixel cleaning functionality.
The text was updated successfully, but these errors were encountered:
There are a couple small issues in clean.py:
Many old recipes contain filter sections which only contain coordinates and do not contain keepcoordinates properties. The absence of keepcoordinates causes a KeyError exception when attempting to retrieve the keepcoordinates from the DICOMCleaner results (clean.py - line 153)
For 2-dimensional images, the cleaner falls into the else condition (clean.py - line 201) which causes no pixel masking to be performed and an exception to be thrown because self.original.shape is not converted to a string prior to being used in the format statement.
I've committed proposed fixes in this commit. Let me know if you have any suggestions on this. It's the first I've looked at pixel cleaning functionality.
The text was updated successfully, but these errors were encountered: