-
-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: load both ciqual + calnut tables (#8702)
Originally we loaded only the "extended" calnut table, which has estimates for all nutrients, but it is missing some categories, so we also load the normal ciqual table
- Loading branch information
1 parent
b219145
commit e449fa8
Showing
8 changed files
with
3,377 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CIQUAL2020_ENG_2020_07_07.csv |
3,187 changes: 3,187 additions & 0 deletions
3,187
external-data/ciqual/ciqual/CIQUAL2020_ENG_2020_07_07.csv
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2020 |
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
45 changes: 45 additions & 0 deletions
45
tests/unit/expected_test_results/nutrition_estimation/frik.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"estimated_nutrients" : { | ||
"nutrients" : { | ||
"alcohol" : 0, | ||
"calcium" : 0.0503, | ||
"carbohydrates" : 55.8, | ||
"chloride" : 0.089, | ||
"copper" : 0.001, | ||
"energy" : 321, | ||
"fat" : 2.25, | ||
"fiber" : 19.3, | ||
"fructose" : 0.5, | ||
"glucose" : 0.5, | ||
"iron" : 0.0052, | ||
"lactose" : 0.5, | ||
"magnesium" : 0.114, | ||
"maltose" : 0.5, | ||
"manganese" : 0.0036, | ||
"phosphorus" : 0.321, | ||
"polyols" : 0, | ||
"potassium" : 0.512, | ||
"proteins" : 9.62, | ||
"salt" : 0.011, | ||
"sodium" : 0.0042, | ||
"starch" : 30.2, | ||
"sucrose" : 0.5, | ||
"vitamin-b6" : 0.00014, | ||
"vitamin-e" : 0.0001, | ||
"water" : 11.3, | ||
"zinc" : 0.0036 | ||
}, | ||
"total" : 100, | ||
"total_with_nutrients" : 100, | ||
"unknown_ingredients" : {} | ||
}, | ||
"ingredients" : [ | ||
{ | ||
"id" : "en:freekeh", | ||
"percent_estimate" : 100, | ||
"percent_max" : 100, | ||
"percent_min" : 100, | ||
"text" : "frik" | ||
} | ||
] | ||
} |
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