Skip to content

Commit c3f874f

Browse files
lint
1 parent 817481c commit c3f874f

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

amid/luna25.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,17 @@ def nodules(self, i):
116116
center_voxel = ((coords[::-1] - image_origin) / self.spacing(i)) * direction
117117
bbox_start_point = ((nodule_block_metadata['origin'] - image_origin) / self.spacing(i)) * direction
118118
bbox = [bbox_start_point, np.minimum(bbox_start_point + np.array([64, 128, 128]), self.image(i).shape)]
119-
nodules.append(LUNA25Nodule(
120-
coords=coords,
121-
lesion_id=row.LesionID,
122-
annotation_id=str(row.AnnotationID),
123-
nodule_id=str(row.NoduleID),
124-
malignancy=row.label,
125-
center_voxel=np.round(center_voxel).astype(int),
126-
bbox=np.round(bbox).astype(int),
127-
))
119+
nodules.append(
120+
LUNA25Nodule(
121+
coords=coords,
122+
lesion_id=row.LesionID,
123+
annotation_id=str(row.AnnotationID),
124+
nodule_id=str(row.NoduleID),
125+
malignancy=row.label,
126+
center_voxel=np.round(center_voxel).astype(int),
127+
bbox=np.round(bbox).astype(int),
128+
)
129+
)
128130
return nodules
129131

130132
def nodule_block_image(self, annotation_id):

0 commit comments

Comments
 (0)