pyplati / platipy

Processing Library and Analysis Toolkit for Medical Imaging in Python
https://pyplati.github.io/platipy/
Apache License 2.0
103 stars 24 forks source link

Duplicate code in rtstruct_to_nifti removed #171

Closed GabrielePalazzo closed 1 year ago

GabrielePalazzo commented 1 year ago

Hi, I'm currently working on a project involving importing dicom rt structures and I found this if condition defined twice in your code:

if len(struct_point_sequence[struct_index].ContourSequence) == 0:
    logger.debug("Contour sequence empty for this structure, skipping.")
    continue