Skip to content

Commit 8bdaa51

Browse files
fix type error
Signed-off-by: Yiheng Wang <[email protected]>
1 parent dcb02a3 commit 8bdaa51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monai/data/image_reader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ def read(self, data: Sequence[PathLike] | PathLike, **kwargs):
523523
series_slcs = [slc for slc in glob.glob(os.path.join(name, "*")) if re.match(self.fname_regex, slc)]
524524
else:
525525
series_slcs = [slc for slc in glob.glob(os.path.join(name, "*")) if pydicom.misc.is_dicom(slc)]
526-
self.filenames[i] = series_slcs # type: ignore
526+
self.filenames[i] = series_slcs # type: ignore
527527
slices = []
528528
for slc in series_slcs:
529529
try:
@@ -640,7 +640,7 @@ def get_data(self, data) -> tuple[np.ndarray, dict]:
640640
# a list of list, each inner list represents a dicom series
641641
else:
642642
for i, series in enumerate(data):
643-
dicom_data.append(self._combine_dicom_series(series, self.filenames[i])) # type: ignore
643+
dicom_data.append(self._combine_dicom_series(series, self.filenames[i])) # type: ignore
644644
else:
645645
# a single pydicom dataset object
646646
if not isinstance(data, list):

0 commit comments

Comments
 (0)