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
The current DICOM parser in DICOMHawk is not robust enough to handle DICOM files with missing attributes. This can lead to AttributeErrors and potential crashes when processing diverse DICOM files.
Specific problems:
The parser assumes all DICOM files will have standard attributes like PatientID, PatientName, and PatientBirthDate.
When these attributes are missing, the parser raises an AttributeError, potentially crashing the application.
The current implementation doesn't provide a clear way to identify missing data in the parsed output.
Proposed solution:
Modify the parser to use getattr() with default values for all attributes.
Update the parser to return 'N/A' for any missing attributes.
Enhance test cases to verify the parser's behavior with missing attributes.
The text was updated successfully, but these errors were encountered:
The current DICOM parser in DICOMHawk is not robust enough to handle DICOM files with missing attributes. This can lead to AttributeErrors and potential crashes when processing diverse DICOM files.
Specific problems:
Proposed solution:
Modify the parser to use getattr() with default values for all attributes.
Update the parser to return 'N/A' for any missing attributes.
Enhance test cases to verify the parser's behavior with missing attributes.
The text was updated successfully, but these errors were encountered: