Skip to content
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

Rename employment variables to "Labor Force" category #94

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions definitions/variable/macro-economy/gdp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@
- Value Added|{Economic Sectors}:
description: Value added by the {Economic Sectors}
unit: billion USD_2010/yr
tier: {Economic Sectors}
navigate: Value Added|Commercial
tier: 1
navigate: Value Added|{Economic Sectors}
- Capital Formation:
description: net additions to the physical capital stock
description: Net additions to the physical capital stock
unit: billion USD_2010/yr
tier: 1
- Expenditure|Government:
description: total government expenditure
description: Total expenditure by governments
unit: billion USD_2010/yr
tier: 1
- Expenditure|Household:
description: Total household expenditure
- Expenditure|Households:
description: Total expenditure by households
unit: billion USD_2010/yr
tier: 1
navigate: Expenditure|Household
14 changes: 14 additions & 0 deletions definitions/variable/macro-economy/labor-force.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- Labor Force|{Employment Status}:
description: Working-age inhabitants which are {Employment Status}
(part of the active labor force)
unit: million
tier: 1
min: 0
navigate: "{Employment Status}"
- Labor Force|Inactive:
description: Inhabitants which are not part of the labor force, including
working-age people neither employed nor unemployed, and people not
in a working-age cohort (e.g., children, retirees)
unit: million
tier: 1
min: 0
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
- Economic Sectors:
- Agriculture:
description: the aggregated agricultural sectors (ISIC Rev.4 A)
tier: 1
- Industry:
description: the aggregated industrial sector (ISIC Rev.4 B-F)
tier: 1
- Services:
description: the aggregated services sector (ISIC Rev.4 G-X)
tier: 1
navigate: Commercial
7 changes: 7 additions & 0 deletions definitions/variable/macro-economy/tag_employment-status.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- Employment Status:
- Employed:
description: employed
navigate: Employment
- Unemployed:
description: unemployed
navigate: Unemployment
5 changes: 0 additions & 5 deletions definitions/variable/population/population.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
definition: Total population
unit: million
tier: 1
- Population|{Labor Force}:
definition: Inhabitants which are {Labor Force}
unit: million
tier: 1
min: 0
- Population|Urban:
definition: Total population living in urban areas
unit: million
Expand Down
7 changes: 0 additions & 7 deletions definitions/variable/population/tag_laborforce.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion tests/test_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_legacy_variables():
for project in LEGACY_PROJECTS:
if project in attrs.extra_attributes:
legacy_var = attrs.__getattr__(project)
if legacy_var in existing_variables:
if legacy_var != code and legacy_var in existing_variables:
legacy_variables[legacy_var] = code

if legacy_variables:
Expand Down
Loading