From a617b54fdc046f1f28b46a724dbc81a7819b5a50 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Mon, 26 Aug 2024 10:43:40 +0200 Subject: [PATCH] Add results files. --- .idea/.gitignore | 3 +++ README.md | 21 +++++++++------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 .idea/.gitignore diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/README.md b/README.md index 8c281a8..04defce 100644 --- a/README.md +++ b/README.md @@ -132,19 +132,16 @@ How to use it? bw.projects.set_current("your_bw_project") ndb = NewDatabase( - scenarios = [ - {"model":"image", "pathway":"SSP2-Base", "year":2050,}, - {"model":"image", "pathway":"SSP2-RCP26", "year":2030,}, - ], - source_db="ecoinvent 3.8 cutoff", - source_version="3.8", - key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', - external_scenarios=[ - ammonia, # <-- list datapackages here - ] - ) + scenarios = [ + {"model":"image", "pathway":"SSP2-Base", "year":2050, "external scenarios": [{"scenario": "Business as usual", "data": ammonia}]}, + {"model":"image", "pathway":"SSP2-RCP26", "year":2030, "external scenarios": [{"scenario": "Sustainable development", "data": ammonia}]}, + ], + source_db="ecoinvent 3.10 cutoff", + source_version="3.10", + key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', + ) - ndb.update_external_scenario() + ndb.update("external") # or ndb.update() if you want to update the database with the IAM data plus the external scenario ```