-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update FCT data version #279
Comments
Is the FCT metadate actually read from .csv file? I've found hardcoded FCt emtadata in |
It looks like the FCT metadata is hardcoded. The FCT-import script checks if metadata already exists in the db before loading FCT data |
Currently stuck on the following error, putting it here to remind myself on monday:
|
new data imported |
moving from |
Removing MAFOOD entirely also breaks the household consumption data import |
The problem is with a food_genus_id; trying to insert household consumption data causes a foreign key violation. The problem is with household consumption entries for |
The change from |
I am going to update the IHS4 version so the matching will work, but since updating the genus_id is something that is meant to happen and it will evetually break the matching process, we need to think on a long term solution. There are a few ideas:
|
Can you explain why the id for that fooditem changed? When you change the the id of a fooditem, can't you simply do a find-and-replace on the consumption datasets as well? |
For the time being, I've replaced all instances of |
I change it when I have new data or updated knowledge that represents better the dietary intakes of Malawi. I don't think that doing a manual search and replace is a good long term solution. So, I would need to think of something... |
Thanks! I'll look into the IHS4 data and see any other potential issues :) |
The data has been updated and merged into the master branch of the data repo. However, due to a workaround for a bug, most of the data has been temporarily removed. |
Add newest data to repository, which should hopefully fix a problem with matching food composition data to food consumption data
The text was updated successfully, but these errors were encountered: