Skip to content

Commit

Permalink
Revert "change migration scripts"
Browse files Browse the repository at this point in the history
This reverts commit ab19623.
  • Loading branch information
alebjanes committed Mar 28, 2024
1 parent ab19623 commit 9e8012d
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ In order to add one cube, the steps are:
- The script then appends a column containing embeddings generated from the drilldown names using the same embedding model mentioned before.
- This process needs to be repeated for each drilldown level within the cube or those required for making cuts. Time variables don't need to be loaded into the database.

### [Migration for future projects] In progress...
### [For future projects] In progress...

To add all the cubes of a project automatically, they can be mapped from the tesseract schema json to the custom format needed in the app. To do this follow these steps:

Expand Down
Empty file.
Empty file.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,8 @@ def load_data_to_db(api_url, measure_name):
api_url = input()
print("Enter measure name: ")
measure_name = input()
#df = pd.read_csv('/Users/alexandrabjanes/Datawheel/CODE/datausa-chat/tables.csv')
#print(df.head())

#create_table()
load_data_to_db(api_url, measure_name = measure_name)
3 changes: 0 additions & 3 deletions api/src/utils/helpers/schema_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
import sys

def parse_xml_to_json(xml_file):
"""
Parses XML schema to custom json format.
"""
tree = ET.parse(xml_file)
root = tree.getroot()

Expand Down
File renamed without changes.

0 comments on commit 9e8012d

Please sign in to comment.