Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,10 @@ We recommend using a conda environment to handle python dependencies. The follow

3. In Python, connect a database file `SIMPLE.sqlite` as a Database object called `db` and recreate the database using the JSON files in the `data/` directory. Run these commands from within Python.
```python
from astrodb_utils import load_astrodb
from simple import REFERENCE_TABLES

SCHEMA_PATH = "simple/schema.yaml"
db = load_astrodb(
"SIMPLE.sqlite",
recreatedb=True,
reference_tables=REFERENCE_TABLES,
felis_schema=SCHEMA_PATH
from astrodb_utils.loaders import build_db_from_json

db = build_db_from_json(
settings_file="database.toml"
)
```

Expand Down Expand Up @@ -89,7 +84,7 @@ If you've made changes to the SIMPLE Archive that you would like to contribute t
## SIMPLE Database Schema

The schema for the SIMPLE database is described
in the [Documentation](documentation) and can be found in [`simple/schema.yaml`](simple/schema.yaml).
in the [Documentation](documentation) and can be found in [`schema.yaml`](schema.yaml).

A graphical representation of the SIMPLE schema:
<img src="https://github.com/SIMPLE-AstroDB/SIMPLE-db/blob/main/docs/figures/auto_schema.png?raw=true" width=75%>
Loading