Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tuple index of range (resampling autofluorescence step) #149

Open
c3rry opened this issue Sep 13, 2024 · 0 comments
Open

tuple index of range (resampling autofluorescence step) #149

c3rry opened this issue Sep 13, 2024 · 0 comments

Comments

@c3rry
Copy link

c3rry commented Sep 13, 2024

While utilizing the data from https://osf.io/cztq2/ we ran into an error while aligning our autofluorescence data. The full log can be found below: For reference we used a 1x1x1 resolution for both main and ref channels.
**Traceback (most recent call last):
File "/home/gangliaguardian/anaconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.4-py3.9-linux-x86_64.egg/ClearMap/gui/tabs.py", line 606, in run_registration
self.main_window.wrap_in_thread(self.preprocessor.resample_for_registration, force=True)
File "/home/gangliaguardian/anaconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.4-py3.9-linux-x86_64.egg/ClearMap/gui/run_gui.py", line 619, in wrap_in_thread
return result.get()
File "/home/gangliaguardian/anaconda3/envs/ClearMapUi39/lib/python3.9/multiprocessing/pool.py", line 771, in get
raise self._value
File "/home/gangliaguardian/anaconda3/envs/ClearMapUi39/lib/python3.9/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, kwds))
File "/home/gangliaguardian/anaconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.4-py3.9-linux-x86_64.egg/ClearMap/processors/sample_preparation.py", line 610, in resample_for_registration
self.__resample_autofluorescence()
File "/home/gangliaguardian/anaconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.4-py3.9-linux-x86_64.egg/ClearMap/processors/sample_preparation.py", line 577, in __resample_autofluorescence
result = resampling.resample(self.filename('autofluorescence'),
File "/home/gangliaguardian/anaconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.4-py3.9-linux-x86_64.egg/ClearMap/Alignment/Resampling.py", line 392, in resample
resample_shape(source_shape=source_shape, sink_shape=sink_shape,
File "/home/gangliaguardian/anaconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.4-py3.9-linux-x86_64.egg/ClearMap/Alignment/Resampling.py", line 254, in resample_shape
source_shapeO = orient_shape(source_shape, orientation);
File "/home/gangliaguardian/anaconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.4-py3.9-linux-x86_64.egg/ClearMap/Alignment/Resampling.py", line 195, in orient_shape
return orient_resolution(shape, orientation, inverse = inverse);
File "/home/gangliaguardian/anaconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.4-py3.9-linux-x86_64.egg/ClearMap/Alignment/Resampling.py", line 171, in orient_resolution
return tuple(resolution[i] for i in per);
File "/home/gangliaguardian/anaconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.4-py3.9-linux-x86_64.egg/ClearMap/Alignment/Resampling.py", line 171, in
return tuple(resolution[i] for i in per);
IndexError: tuple index out of range

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

No branches or pull requests

1 participant