Open EllieMo opened 2 years ago
Hmmm, I've never seen this before, but from the error you posted it seems to come from nibabel. For some reason there are some issues with nibabel not being able to load giftis. Can you confirm that loading a gifti file with nibabel fails? e.g., using the example subject provided with pycortex
import cortex
import nibabel as nib
filestore_path = cortex.database.default_filestore
gii = nib.load(f"{filestore_path}/S1/surfaces/pia_lh.gii")
pts = gii.get_arrays_from_intent('pointset')[0].data
polys = gii.get_arrays_from_intent('triangle')[0].data
If I read your traceback correctly, it should fail at the nib.load
line.
If that's the case, I would try reinstalling nibabel or post an issue/check for closed issues in https://github.com/nipy/nibabel
Hello, I'm trying to plot a flatmap and can't seem to get past quickshow. I've been following code from the example gallery; (https://gallantlab.github.io/pycortex/auto_examples/datasets/plot_volumeRGB.html#sphx-glr-auto-examples-datasets-plot-volumergb-py - but same problem with other examples) as that is what I'm aiming for. I seem to be having an error potentially related to my data and another one just (macOS, python 3.9)
When I use the example data I do get part of the plot I would expect with this error message:
when using my own data it fails at a similar place (empty plot though) with a different error:
Has anyone seen either of these before and how did you solve them?