Skip to content

Automatically create database and colormap folders #447

@magehrke

Description

@magehrke

Hello everyone!

Problem: I am working myself through the voxelwise_tutorials and when the script tries to access cortex.db (here) I get:
FileNotFoundError: [Errno 2] No such file or directory: '/home/magehrke/anaconda3/envs/himalaya/share/pycortex/db'
Later in the script I get the same error with the colormaps directory.

Solution: The directories have to be created by hand by the user, before running the script. This can be easily implemented, for example with a try-catch block.

System: Ubuntu 20.04, Python 3.10, pycortex 1.2.4.

Disclaimer: In case I missed something and it's a user error, please give me a hint how it can be avoided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions