Skip to content

Commit 45bcf6f

Browse files
account for comment
1 parent 236c6ae commit 45bcf6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

amid/luna25.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def nodules(self, i):
109109
coords = (row.CoordX, row.CoordY, row.CoordZ)
110110
center_voxel = sitk_image.TransformPhysicalPointToIndex(map(int, coords))[::-1]
111111

112-
nodule_block_origin = self.nodule_block_metadata(row.AnnotationID)['origin'][::-1]
112+
nodule_block_origin = self.get_nodule_block_metadata(row.AnnotationID)['origin'][::-1]
113113
bbox_start_point = sitk_image.TransformPhysicalPointToIndex(map(int, nodule_block_origin))[::-1]
114114
bbox = np.array([bbox_start_point, np.minimum(bbox_start_point + bbox_size, shape)])
115115
nodules.append(
@@ -125,10 +125,10 @@ def nodules(self, i):
125125
)
126126
return nodules
127127

128-
def nodule_block_image(self, annotation_id):
128+
def get_nodule_block_image(self, annotation_id):
129129
return np.load(self.root / f'luna25_nodule_blocks/image/{annotation_id}.npy')
130130

131-
def nodule_block_metadata(self, annotation_id):
131+
def get_nodule_block_metadata(self, annotation_id):
132132
metadata = np.load(self.root / f'luna25_nodule_blocks/metadata/{annotation_id}.npy', allow_pickle=True)
133133
assert metadata.shape == ()
134134
return metadata.item()

0 commit comments

Comments
 (0)