Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add a how-to guide in the docs showing how to rebuild of database #261

Open
jwreep opened this issue Jan 30, 2024 · 4 comments
Open

Add a how-to guide in the docs showing how to rebuild of database #261

jwreep opened this issue Jan 30, 2024 · 4 comments
Labels
docs effort-low Good First Issue The best issues for new people to tackle!

Comments

@jwreep
Copy link
Contributor

jwreep commented Jan 30, 2024

While working on #260, I had updated the units for the hseq_2photon parser (to remove units from A_sum). The database then requires a rebuild in order to correctly parse the updated units, since it has already hard-coded them.

One thought: any update to fiasco that changes parser information like this should then require a rebuild of the database to prevent similar issues. Is there any way to do so?

@wtbarnes
Copy link
Owner

Sorry, very delinquent in replying to this one. I don't really have any bright ideas here. The first thing that comes to mind is to implement some sort of hashing system but then this would require keeping track of hashes for each dataset or somehow tracking which parts of the code base impact which parts of the database. A brute force method would be to rebuild the database every time the code changes but that seems extreme.

In general, I don't expect the I/O code to change and when it does, those changes are generally being done by experienced users so there's not much chance for gotchas. On top of that, when the tests are run, the database is actually rebuilt from scratch every single time so we should never be caught by this when it comes to running the tests.

@jwreep
Copy link
Contributor Author

jwreep commented Feb 22, 2024

Would it be worth adding a note or example in the docs showing how to rebuild the database manually, then? At least then any user who runs into issues can see an easy solution.

@wtbarnes
Copy link
Owner

Yes, definitely! I recently refactored the docs so in this new organization, we could have a "how-to" guide for rebuilding the database.

@wtbarnes
Copy link
Owner

I've changed the title of this issue to make it about adding a how-to guide for rebuilding the database.

@wtbarnes wtbarnes changed the title Change of units in parser requires rebuild of database Add a how-to guide in the docs showing how to rebuild of database Mar 14, 2024
@wtbarnes wtbarnes added docs effort-low Good First Issue The best issues for new people to tackle! labels Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs effort-low Good First Issue The best issues for new people to tackle!
Projects
None yet
Development

No branches or pull requests

2 participants