Skip to content

Commit

Permalink
Fix issue when biomass volume is zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Sep 2, 2024
1 parent 49e5603 commit 2d470d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dev/Untitled1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 7,
"id": "f7832a6c-fd12-4825-b74b-2ff63b16e150",
"metadata": {},
"outputs": [
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion premise/biomass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2d470d7

Please sign in to comment.