-
Notifications
You must be signed in to change notification settings - Fork 44
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
Resampling IndexError: tuple index out of range #118
Comments
"Is ndim supposed to be higher than 3?", well definitely not more than 4 (with color) |
Hi, |
@hhbw16 this can happen with incorrectly read metadata from tiff. |
@crousseau thanks for your advice, |
Hi,
while trying to run TubeMap or CellMap, I get the following error:
The stitching process seems to go smoothly and I get stuck in resampling. In the file ClearMap/Alignment/Resampling.py, variables such as "source_shapeO", "source_resolutionO" or "sink_resolution" are arrays of size 1x3, but ndim can reach values of 5. Hence the lines such as:
sink_shape = tuple([int(np.ceil(source_shapeO[i] * float(source_resolutionO[i])/float(sink_resolution[i]))) for i in range(ndim)]);
cause the error. What could be the root issue? Is ndim supposed to be higher than 3?
The text was updated successfully, but these errors were encountered: