int-brain-lab / iblenv

Unified environment and Issue tracker for all IBL
MIT License
12 stars 10 forks source link

[Bug report] - Stop Iteration error when instantiation AllenAtlas #319

Closed oliche closed 2 years ago

oliche commented 2 years ago

On Windows

image

oliche commented 2 years ago

This is most likely a file corruption when downlading the atlas files. This code will give the location of the cached atlas files, please delete everything that is in the directory (especially ,nrrd files)

from pathlib import Path
import one.params
par = one.params.get(silent=True)
FLAT_IRON_ATLAS_REL_PATH = Path('histology', 'ATLAS', 'Needles', 'Allen')

path_atlas = Path(par.CACHE_DIR).joinpath(FLAT_IRON_ATLAS_REL_PATH)
print(path_atlas)

Once this is done, try instantiating again:

from ibllib.atlas import AllenAtlas
ba = AllenAtlas()

Please attach any error that may be occuring in the snippets above (it may be due to a misconfiguration as well)

Aexolowski commented 2 years ago

Yes, it worked, thanks a lot!