Skip to content

Commit

Permalink
Update item names and python script
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloarosado committed Mar 19, 2024
1 parent 92172c5 commit 57ad6d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/global-food-explorer/foods.csv
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fat_pigs,"Fat, pigs",Pig fat,Pig fat,production animals_slaughtered,
fat_sheep,"Fat, sheep",Sheep fat,Sheep fat,production animals_slaughtered,
fibre_crops,Other fibre crops,Fibre crop,Fibre crops,production land_use crop_yield,
fish_and_seafood,Fish and seafood,Fish and seafood,Fish and seafood,food_balances animal_feed,
flax_fibre,Flax fibre,Flax fibre,Flax fibre,production land_use crop_yield,
flax_raw_or_retted,"Flax, raw or retted","Flax, raw or retted","Flax, raw or retted",production land_use crop_yield,
fruit,Fruit,Fruit,Fruit,production land_use crop_yield food_balances waste animal_feed,
garlic,Garlic,Garlic,Garlic,production land_use crop_yield,
grapefruit,Grapefruit,Grapefruit,Grapefruits,production land_use crop_yield food_balances waste,
Expand Down
9 changes: 5 additions & 4 deletions scripts/global-food-explorer/global-food-explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
import sys

# Latest ETL version of the food explorer (https://github.com/owid/etl/tree/master/etl/steps/data/explorers/faostat/).
VERSION = "2023-06-12"
VERSION = "latest"

# Get year (to be used in metadata) from the version.
year = VERSION.split("-")[0]
# Define the year to be used in the metadata.
# year = VERSION.split("-")[0]
YEAR = "2024"

outfile = "../../explorers/global-food.explorer.tsv"

Expand Down Expand Up @@ -163,7 +164,7 @@ def table_def(food):
food_slugs=food_slugs,
graphers_tsv=graphers_tsv_indented,
table_defs=table_defs,
year=year,
year=YEAR,
)
)

Expand Down

0 comments on commit 57ad6d4

Please sign in to comment.