Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content upgrades #60

Merged
merged 4 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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