Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Updates CPI correction to handle missing data #501

Merged
merged 4 commits into from Jan 12, 2021

Conversation

madsnedergaard
Copy link
Member

@madsnedergaard madsnedergaard commented Jan 12, 2021

Description

Updates the Consumer Price Indices (CPI) correction to handle situations where data is not available.

Changes

  • Removes 2020 data as it's not available yet
  • Rearranges existing tests to minimise console output
  • Updates CPI to use latest available yearly data (+ adds more tests for this code)

See commit messages for more detailed explanations.

#459

image

Not sure where we got the numbers from, maybe using Q1 data?
There's no need to have a test for each single item in footprints.yml, it should be enough to have one test with more expects.
Before it was using global average of failing - now it uses:
1) yearly country data,
2) closest yearly country data,
3) yearly average data,
4) closest yearly average data
@madsnedergaard madsnedergaard merged commit 2cad716 into master Jan 12, 2021
@madsnedergaard madsnedergaard deleted the mn/models/improve-purchase-cpi-correction branch January 12, 2021 13:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants