Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FIX add downloaded subjects to the cortex database #413

Merged
merged 2 commits into from
Dec 16, 2021

Conversation

TomDLT
Copy link
Contributor

@TomDLT TomDLT commented Dec 16, 2021

The function cortex.utils.download_subject does not update the database (cortex.db) with the newly added subject, because the cached dictionary is not updated cortex.db._subjects. This PR reset the cached dictionary to update the list of available subject after the download.

This PR also changes the default filestore to the current filestore in use (cortex.db.filstore) instead of the one listed in the config file.

cortex/utils.py Outdated Show resolved Hide resolved
@mvdoc mvdoc merged commit 94c1067 into gallantlab:main Dec 16, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants