Skip to content

Commit

Permalink
fix: data folder unlocated
Browse files Browse the repository at this point in the history
  • Loading branch information
philsv committed Oct 24, 2023
1 parent a6c3e7e commit 85b85d4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 10 additions & 2 deletions pycot/extract_report_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,23 @@ def get_cot_data() -> dict:
"""
Extracts the Commitment of Traders Reports metadata.
"""
with open(BASE_PATH / "pycot/data/cot_reports_data.json", "r") as f:
with open(BASE_PATH / "data" / "cot_reports_data.json", "r") as f:
return json.load(f)


def get_formating_data() -> dict:
"""
Extracts the column formating data.
"""
with open(BASE_PATH / "pycot/data/format_columns.json", "r") as f:
with open(BASE_PATH / "data" / "format_columns.json", "r") as f:
return json.load(f)


def get_contract_data() -> dict:
"""
Extracts the contract data.
"""
with open(BASE_PATH / "data" / "contract_names.json", "r") as f:
return json.load(f)


Expand Down
File renamed without changes.

0 comments on commit 85b85d4

Please sign in to comment.