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

ReadMe and Database Setup #70

Open
wants to merge 6 commits into
base: development
Choose a base branch
from
Open

ReadMe and Database Setup #70

wants to merge 6 commits into from

Conversation

sreynit02
Copy link

This PR updates the README of bcsr to align with the current work environment and database models.

To successfully create DB for this repo, we had to make some changes to the code in create_db.py and config.yaml. We made these changes by referencing CELTS's create_db.pyandconfig.yaml` and debugging.

Test:
Follow the README steps to setup bscr and its database.

README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@BrianRamsay BrianRamsay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a couple issues for me. Also at the bottom of setup.sh it is still doing celts things with config and reset_database. That should be changed for bcsr

3. Click on "New" on top of the sidebar at the left of the screen
4. If there is already a database named "bcsr", drop it
5. Create a new database with the name "bcsr"
6. Run ```python create_db.py```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get this error when trying to create databases

(venv) ramsayb2@Berea-C02ZC049LVDN:~/dev/bcsr %>python create_db.py                                 0 - ttys004
Traceback (most recent call last):
  File "/Users/ramsayb2/dev/bcsr/create_db.py", line 14, in <module>
    sqlite_dbs  = [ conf['databases']['dev']
KeyError: 'databases'

Copy link
Author

@sreynit02 sreynit02 Feb 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are codes that we edited that we would like to merge into development and this line was changed to sqlite_dbs = [ conf['databases'][0] . Is it maybe you haven't merged those codes in ur branch yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants