Skip to content

Commit 236c6ae

Browse files
lint
1 parent ce319a5 commit 236c6ae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

amid/luna25.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from datetime import datetime
22
from functools import cached_property
3-
from typing import Dict, NamedTuple, Sequence
3+
from typing import NamedTuple, Sequence
44

55
import numpy as np
66
import pandas as pd
@@ -42,14 +42,14 @@ class LUNA25(Dataset):
4242
Parameters
4343
----------
4444
root : str, Path, optional
45-
path to the folder containing `luna25_images` and `luna25_nodule_blocks` folders and
45+
path to the folder containing `luna25_images` and `luna25_nodule_blocks` folders and
4646
`LUNA25_Public_Training_Development_Data.csv` file obtained by the instruction at
4747
https://luna25.grand-challenge.org/datasets/.
4848
If not provided, the cache is assumed to be already populated.
4949
5050
Notes
5151
-----
52-
Join the challenge at https://luna25.grand-challenge.org/.
52+
Join the challenge at https://luna25.grand-challenge.org/.
5353
Then follow the download and extraction instructions at https://luna25.grand-challenge.org/datasets/.
5454
"""
5555

@@ -109,8 +109,8 @@ 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_metadata = self.nodule_block_metadata(row.AnnotationID)
113-
bbox_start_point = sitk_image.TransformPhysicalPointToIndex(map(int, nodule_block_metadata['origin'][::-1]))[::-1]
112+
nodule_block_origin = self.nodule_block_metadata(row.AnnotationID)['origin'][::-1]
113+
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(
116116
LUNA25Nodule(

0 commit comments

Comments
 (0)