Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

ERRORS ON PRE-PROCESSING STEP #9

Open
MHansy opened this issue Apr 3, 2021 · 0 comments
Open

ERRORS ON PRE-PROCESSING STEP #9

MHansy opened this issue Apr 3, 2021 · 0 comments

Comments

@MHansy
Copy link

MHansy commented Apr 3, 2021

Hello Sir
Could you help me please, when am trying to run the pre-process step am facing the errors below...

IndexError Traceback (most recent call last)
in
57
58 if name == 'main':
---> 59 save_preprocessed_data()

in save_preprocessed_data()
48 tp_co = tp_co[:max_numbers_to_use]
49 radii = radii[:max_numbers_to_use]
---> 50 ct = CTScan(seriesuid=series_id, centers=tp_co, radii=radii, clazz=0)
51 ct.preprocess()
52 ct.save_preprocessed_image()

in init(self, seriesuid, centers, radii, clazz)
15 self._centers = centers
16 paths = glob(f'''{RESOURCES_PATH}/*/{self._seriesuid}.mhd''')
---> 17 path = paths[0]
18 self._ds = sitk.ReadImage(path)
19 self._spacing = np.array(list(reversed(self._ds.GetSpacing())))

IndexError: list index out of range

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant