From 2d470d706dfa4be81699265e6bec6a057a884779 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Mon, 2 Sep 2024 09:53:15 +0200 Subject: [PATCH] Fix issue when biomass volume is zero. --- dev/Untitled1.ipynb | 3 ++- premise/biomass.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/Untitled1.ipynb b/dev/Untitled1.ipynb index c3d73bc0..077c7dcc 100644 --- a/dev/Untitled1.ipynb +++ b/dev/Untitled1.ipynb @@ -240,7 +240,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 7, "id": "f7832a6c-fd12-4825-b74b-2ff63b16e150", "metadata": {}, "outputs": [ @@ -260,6 +260,7 @@ "supply of forest residue 0.6372133658631522 kilogram\n", "\n", "market for biomass, used as fuel IND\n", + "market for wood chips, dry, measured as dry mass 1.0 kilogram\n", "\n", "market for biomass, used as fuel JPN\n", "market for wood chips, dry, measured as dry mass 0.06843991001415911 kilogram\n", diff --git a/premise/biomass.py b/premise/biomass.py index ceb2e2a4..9fd147b3 100644 --- a/premise/biomass.py +++ b/premise/biomass.py @@ -308,7 +308,7 @@ def create_biomass_markets(self) -> None: f"Dataset {dataset['name']} has no technosphere exchanges." ) - self.database.append(dataset) + self.database.append(dataset) # add log self.write_log(dataset=dataset)