Skip to content

Commit

Permalink
Merge pull request #60 from brightway-lca/content_upgrades
Browse files Browse the repository at this point in the history
Content upgrades
  • Loading branch information
michaelweinold authored Sep 25, 2024
2 parents b3be2b7 + 96094bf commit 07c7223
Show file tree
Hide file tree
Showing 4 changed files with 1,453 additions and 1,691 deletions.
4 changes: 2 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ First fully tested release of the "Learn Brightway" book. This release was prepa
The book now includes:

- a long section on Brightway2 by @KarinTreyer
- a long section on Brightway25 by @alyabolowich based on ealier work of @maximikos
- a long section on Brightway25 by @alyabolowich and @michaelweinold with the help of Sabina Bednářová based on ealier work of @maximikos.

All sections were edited for publication by @michaelweinold, @mariashoeller and @mehdiiguider.
All sections were edited for publication by @michaelweinold with the help of @mariashoeller and @mehdiiguider.
15 changes: 12 additions & 3 deletions content/chapters/BW2/BW2_introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
"2. If you click on the download button in the top right corner, you can download this section as a Jupyter Notebook (`.ipynb`).\n",
"```\n",
"\n",
"```{admonition} Cheat Sheet\n",
":class: note\n",
"You can download a helpful cheat sheet for Brightway2 commands from the main documentation site: \\\n",
"{download}`bw_cheatsheet_may_2024.pdf <https://docs.brightway.dev/en/legacy/_downloads/1298031680ac4f2b1b3518dcb9df2f1d/bw_cheatsheet_may_2024.pdf>`\n",
"```\n",
"\n",
"</details>"
]
},
Expand Down Expand Up @@ -183,7 +189,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"You can check which projects exist on my computer - to see which ones are there, or if you have forgotten the name of your project. Of course, on your computer, you will see a different list of projects:\n"
"You can check which projects exist on my computer - to see which ones are there, or if you have forgotten the name of your project. Of course, on your computer, you will see a different list of projects:"
]
},
{
Expand Down Expand Up @@ -409,7 +415,10 @@
}
],
"source": [
"bd.bw2setup() # this creates the database \"biosphere3\""
"if any(\"biosphere\" in db for db in bd.databases):\n",
" print('Biosphere is already present in the project.')\n",
"else:\n",
" bi.bw2setup()"
]
},
{
Expand All @@ -434,7 +443,7 @@
],
"source": [
"if 'ecoinvent-3.9.1-cutoff' in bd.databases:\n",
" print('ecoinvent 3.9.1 is already present in the project')\n",
" print('Ecoinvent 3.9.1 is already present in the project.')\n",
"else:\n",
" ei = bi.SingleOutputEcospold2Importer(dirpath=r'C:\\Users\\johndoe\\Downloads\\ecoinvent\\ecoinvent 3.9.1_cutoff_ecoSpold02\\datasets', db_name='ev391cutoff') #recommendation for consistent databases naming: database name (ecoinvent), version number, system model\n",
" ei.apply_strategies() #fixing some issues when ecoinvent and brightway have to talk together by going through all datasets and manipulating them in a specific way\n",
Expand Down
Loading

0 comments on commit 07c7223

Please sign in to comment.