Skip to content

NoneType' object has no attribute 'cluster_annotations' #20

@irsa890

Description

@irsa890

I am getting error in LIDC-IDRI preprocessing
~\AppData\Local\Temp\ipykernel_11144\2002799093.py in prepare_dataset(self)
140
141 for patient in tqdm(self.IDRI_list):
--> 142 pid = LIDC-IDRI-0x17
143 scan = pl.query(pl.Scan).filter(pl.Scan.patient_id == pid).first()
144 nodules_annotation = scan.cluster_annotations()

if I am writing pid= patient
then getting error
~\AppData\Local\Temp\ipykernel_11144\2591889043.py in prepare_dataset(self)
142 pid = patient
143 scan = pl.query(pl.Scan).filter(pl.Scan.patient_id == pid).first()
--> 144 nodules_annotation = scan.cluster_annotations()
145 vol = scan.to_volume()
146 print("Patient ID: {} Dicom Shape: {} Number of Annotated Nodules: {}".format(pid,vol.shape,len(nodules_annotation)))

AttributeError: 'NoneType' object has no attribute 'cluster_annotations'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions