diff --git a/docs/first-steps_Colab.ipynb b/docs/first-steps_Colab.ipynb index fbae1cb7660bc81f8c404a92bef130e418bcfe89..227600dca07f04bcbcfc62d06cb84c1602be4d6e 100644 --- a/docs/first-steps_Colab.ipynb +++ b/docs/first-steps_Colab.ipynb @@ -7,9 +7,15 @@ "source": [ "# Run the Carbon Cycle Assessment\n", "\n", - "In order to run the Carbon Cycle Assessment (CCA), you need to get the model code first. This code is available TU's git server. [git is a version control system](https://git-scm.com/book/de/v2) and helps to keep track of everything that resembles code. Is is integrated in many development environments such as [Visual Studio Code](https://code.visualstudio.com/docs/sourcecontrol/overview) and can be [run from the command line](https://git-scm.com/book/de/v2)). It also helps to collaborate.\n", - "\n", - "Run the following to clone the repository (i.e. create a local copy) to the Colab environment and to change into the directory (`cd`) of the code:" + "In order to run the Carbon Cycle Assessment (CCA), you need to get the model code first. This code is available TU's git server. [git is a version control system](https://git-scm.com/book/de/v2) and helps to keep track of everything that resembles code. Is is integrated in many development environments such as [Visual Studio Code](https://code.visualstudio.com/docs/sourcecontrol/overview) and can be [run from the command line](https://git-scm.com/book/de/v2)). It also helps to collaborate.\n" + ] + }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Run the following to clone the repository (i.e. create a local copy) to the Colab environment and to change into the directory (`cd`) of the code. Necessary python extensions are installed with `pip`:" ] }, { @@ -18,8 +24,9 @@ "metadata": {}, "outputs": [], "source": [ - "!git clone https://git.tu-berlin.de/sebschub/tests.git\n", - "%cd tests" + "!git clone https://git.tu-berlin.de/urbanoikos/models/cca.git\n", + "%cd /content/cca\n", + "!pip install -r requirements.txt" ] }, { @@ -56,9 +63,9 @@ "outputs": [], "source": [ "tegel = cca.cca_to_df(\n", - " filepath_minfotable=\"materialinfo.ods\",\n", - " filepath_musagetable=\"materialusage.ods\",\n", - " infra_floor_area=1276.429,\n", + " filepath_minfotable=\"applications/tegel/materialinfo.ods\",\n", + " filepath_musagetable=\"applications/tegel/materialusage.ods\",\n", + " infra_floor_area=5105.716, # = 4 times the base area (1276.429m²) as building have 4 levels\n", " project_area=213069.25,\n", ")" ]