-
Notifications
You must be signed in to change notification settings - Fork 2
Combine datasets to one region or province
marliekeverweij edited this page Feb 1, 2019
·
11 revisions
- Go to ETLocal branch:
dataset-amalgamator
(there the script is located to combine the regions) - Run in your terminal:
python3 app/services/dataset_combiner.py geo_id=<geo_id> name=<dataset_name> migration_name=<migration_name> dataset_ids=<id1,id2,id3...>
(make sure there are only commas between the ids and no spaces) - Check in the etlocal/db/migrate folder if a new folder is created for this migration
- Check the commits.yml: are all datasets you wanted to combine stated here? (you can also correct the spelling when necessary)
- If everything is fine: create a new branch, commit the new files and create a PR.
If you want to migrate the new region into a database:
- Make sure your ETLocal .env file contains the correct export root. This either has to be EXPORT_ROOT=localhost:3000 (if you want to migrate it into your local database) or EXPORT_ROOT=beta-local.energytransitionmodel.com (if you want to migrate it into the BETA-database)
- Run in your terminal:
rake db:migrate