ClearAnatomics/ClearMap

tuple index of range (resampling autofluorescence step)

Opened this issue · 0 comments

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