Skip to content

Commit

Permalink
Fixed paths in Database to JSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasstolker committed Nov 17, 2023
1 parent e02ca1a commit 22c278e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions species/data/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def list_companions() -> List[str]:
with open(data_file, "r", encoding="utf-8") as json_file:
comp_data = json.load(json_file)

spec_file = Path(__file__).parent.resolve() / "companion_spectra.json"
spec_file = Path(__file__).parent.resolve() / "companion_data/companion_spectra.json"

with open(spec_file, "r", encoding="utf-8") as json_file:
comp_spec = json.load(json_file)
Expand Down Expand Up @@ -180,7 +180,7 @@ def available_models() -> Dict:
file in the ``species.data`` folder.
"""

data_file = Path(__file__).parent.resolve() / "model_data.json"
data_file = Path(__file__).parent.resolve() / "model_data/model_data.json"

with open(data_file, "r", encoding="utf-8") as json_file:
model_data = json.load(json_file)
Expand Down

0 comments on commit 22c278e

Please sign in to comment.