That sequence has the name PlanePositionSequence but it is no instance of the class highdicom.PlanePositionSequence, which later can cause the error "Can only compare instances of PlanePositionSequence" when comparing plane positions in the seg/sop.py file.
I am planning to submit a merge request to fix this by using the function highdicom.PlanePositionSequence.from_sequence to convert the pydicom.Sequence to a highdicom.PlanePositionSequence.
The function
get_plane_positions_of_image
specifies that it should return aList[PlanePositionSequence]
. Instead, the callitem.PlanePositionSequence
causes the return of aList[pydicom.Sequence]
.That sequence has the name PlanePositionSequence but it is no instance of the class
highdicom.PlanePositionSequence
, which later can cause the error "Can only compare instances of PlanePositionSequence" when comparing plane positions in the seg/sop.py file.I am planning to submit a merge request to fix this by using the function
highdicom.PlanePositionSequence.from_sequence
to convert thepydicom.Sequence
to ahighdicom.PlanePositionSequence
.