From df65174fa1c3dec5ef81777c27207b7c2e4638e3 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Mon, 6 Jan 2025 10:39:52 +0100 Subject: [PATCH] Fixing data packaging --- MANIFEST.in | 2 +- .../corrections.yaml | 0 premise/metals.py | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename premise/data/metals/{post-allocation correction => post-allocation_correction}/corrections.yaml (100%) diff --git a/MANIFEST.in b/MANIFEST.in index 951acb34..4ba90a11 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -33,7 +33,7 @@ include premise/data/metals/*.yaml include premise/data/metals/*.txt include premise/data/metals/*.csv include premise/data/metals/*.xlsx -include premise/data/metals/post-allocation correction/*.yaml +include premise/data/metals/post-allocation_correction/*.yaml include premise/data/transport/*.yaml include premise/data/transport/*.csv include premise/data/transport/bus/*.csv diff --git a/premise/data/metals/post-allocation correction/corrections.yaml b/premise/data/metals/post-allocation_correction/corrections.yaml similarity index 100% rename from premise/data/metals/post-allocation correction/corrections.yaml rename to premise/data/metals/post-allocation_correction/corrections.yaml diff --git a/premise/metals.py b/premise/metals.py index dfe67e42..58a96f97 100644 --- a/premise/metals.py +++ b/premise/metals.py @@ -190,11 +190,11 @@ def get_ecoinvent_metal_factors(): def load_post_allocation_correction_factors(): """ - Load yaml file with post-allocation correction factors + Load yaml file with post-allocation_correction factors """ - filepath = DATA_DIR / "metals" / "post-allocation correction" / "corrections.yaml" + filepath = DATA_DIR / "metals" / "post-allocation_correction" / "corrections.yaml" with open(filepath, "r", encoding="utf-8") as stream: factors = yaml.safe_load(stream) return factors