-
-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use new nutrients taxonomy to replace hardcoded values from Food.pm -…
… Ready for review (#6123) * rename nutrients.txt to nutrients_old.txt * rename nutrients.txt to nutrients_old.txt * create script to generate nutrients taxonomy from Food.pm hardcoded values + nutrients_old.txt taxonomy * update script * rename iu / dv to iu_value / dv_value * add xx: entry to all nutrients * new nutrients taxonomy * Small fixes to nutrients taxonomy * use zz: entries for canonical nutrient taxonomy ids * fix commas * Start to use the nutrients taxonomy - #1748 * Start to use the nutrients taxonomy - #1748 * tests for PackagerCodes.pm * add wikidata properties from nutrients_old.txt * make canonicalize_nutriment() use the new nutrients taxonomy * replacing %Nutriments by nutrients taxonomy * fix typo * fix compute_serving_size and tests * fix nutrients suggestions * fix serving size computation for nutrients * fixes for units * add missing added-sugars * small fixes * update test * replace %Nutriment by nutrients taxonomy * replace %Nutriment by nutrients taxonomy * replace %Nutriment by nutrients taxonomy * replace %Nutriment by nutrients taxonomy * Remove %Nutriments from Food.pm as we now use the nutrients taxonomy * fixed typo * use new function from Tags.pm to get synonyms * replace %Nutriment by nutrients taxonomy * removing generate_nutrients_taxonomy.pl now that is has been used once * update tests * update tests * fix test * apply suggestions from code review * remove old nutrients taxonomy
- Loading branch information
1 parent
cc77a2b
commit 86d1247
Showing
141 changed files
with
9,935 additions
and
10,646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.