NeuroVault icon indicating copy to clipboard operation
NeuroVault copied to clipboard

Allow to upload 4D stat maps if last dimension is singleton

Open mvdoc opened this issue 8 years ago • 3 comments

I was trying to upload some maps that for some reason were saved as 4D (why this is so is another issue, but bear with me) with the last dimension being a singleton (e.g., dimension was [91, 109, 91, 1]), but I couldn't upload them with the following error

An error occurred with this upload: ValueError: The shape specified should be the shape of the 3D grid, and thus of length 3. (91, 109, 91, 1) was specified

I think such a map could be "squeezed" automatically by neurovault without it being too risky.

mvdoc avatar Apr 18 '16 18:04 mvdoc

I thought we are already doing this! Did you use single map upload form or folder upload? Could you share the particular nifti file you used?

chrisgorgo avatar Apr 19 '16 14:04 chrisgorgo

I was trying to upload a tar.gz; if I upload the maps individually, then it works perfectly.

I can't share the map publicly (yet ;) ), but if I can send it to you privately if you need it.

thanks!

EDIT: also, the map is .nii, not .nii.gz

mvdoc avatar Apr 19 '16 15:04 mvdoc

ok - hit me on [email protected]

On Tue, Apr 19, 2016 at 8:08 AM, Matteo Visconti di Oleggio Castello < [email protected]> wrote:

I was trying to upload a tar.gz; if I upload the maps individually, then it works perfectly.

I can't share the map publicly (yet ;) ), but if I can send it to you privately if you need it.

thanks!

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/NeuroVault/NeuroVault/issues/486#issuecomment-211970940

chrisgorgo avatar Apr 19 '16 15:04 chrisgorgo