Skip to content

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.

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.

5 participants