dr-rodriguez / SEDkitSIMPLE

Utilities and examples for using SEDkit with SIMPLE
0 stars 0 forks source link

Fixing the set up documentation #11

Open SherelynA opened 2 weeks ago

SherelynA commented 2 weeks ago

The current documentation mentions the following: "You will also need to have a copy of the SIMPLE database. You can download a SQLite binary version of SIMPLE from https://github.com/SIMPLE-AstroDB/SIMPLE-binary or can pull the raw data and build it yourself from https://github.com/SIMPLE-AstroDB/SIMPLE-db". However, this is a bit vague, and changing the next lines of code to the following can help with creating the database if you have the binary version of simple.

from astrodbkit2.astrodb import Database, create_database create_database('sqlite:///SIMPLE.db') db = Database('sqlite:///SIMPLE.db')

dr-rodriguez commented 2 weeks ago

You do not need to run create_database if you've downloaded the file. That is used to create a blank database. We probably just need to update to use SIMPLE.sqlite, which is the new binary file we are using now.

dr-rodriguez commented 2 weeks ago

I updated the readme file to use the sqlite extension and also added a statement about using the full path if needed. Remember that the database needs to be located in the working directory or you need to specify the path in the connection string: db = Database('sqlite:///path/to/SIMPLE.sqlite')