From 0ddb7f6e466ee54ebfc98889fef690da9fb140c0 Mon Sep 17 00:00:00 2001 From: Sebastian Kerger <sebastian.kerger@rwth-aachen.de> Date: Mon, 17 Mar 2025 14:11:16 +0100 Subject: [PATCH] Replace optimization_hydraulic.ipynb --- .../optimization_hydraulic.ipynb | 563 ++---------------- 1 file changed, 66 insertions(+), 497 deletions(-) diff --git a/hydraulic_calibration/optimization_hydraulic.ipynb b/hydraulic_calibration/optimization_hydraulic.ipynb index e1daeae..3aefc7f 100644 --- a/hydraulic_calibration/optimization_hydraulic.ipynb +++ b/hydraulic_calibration/optimization_hydraulic.ipynb @@ -1,18 +1,24 @@ { "cells": [ { - "cell_type": "code", - "execution_count": 1, + "cell_type": "markdown", "metadata": {}, - "outputs": [], "source": [ - "\"\"\"\n", + "# Automated hydraulic optimization\n", "Optimization with mikepluspy\n", "The nevergrad package is used for optimization.\n", "Note: mikepluspy requires a full licence for mike+ to run.\n", "In many cases the seat of the license is not properly released; closing python and waiting some time should fix this.\n", - "\"\"\"\n", "\n", + "this was not updated to the newest version of mike+py. Hence before usage it has to be updated with the optimazation script for water quality. There you can also find all the necessary tabular data and help scripts to fin unit factors or column names" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ "import typing\n", "import datetime\n", "import shutil\n", @@ -22,8 +28,6 @@ "from warnings import warn\n", "from pathlib import Path\n", "import functools\n", - "\n", - "\n", "from mikeplus import DataTableAccess\n", "from mikeplus.engines import Engine1D\n", "import numpy as np\n", @@ -59,14 +63,19 @@ " raise NotImplementedError(f\"no method for {path.suffix} implemented\")" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Set system variables for later use" + ] + }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ - "'''Set system variables for later use''' \n", - "\n", "# delete result files(as specified by event config) before a sim, assures that no old file is reread in the case that a simulation does not run\n", "DELETE_RESFILE_BEFORE_SIM = True\n", "# output heaps of additional data, may be useful for debugging, Default = False\n", @@ -89,7 +98,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -99,18 +108,17 @@ "optimization_budget = 60\n", "# a folder where used files are saved\n", "# note this should be at the same folder depth as the original folder, so that relative paths lead to the same files\n", - "model_folder = Path(\"Modell_Kalibrierung_AD/\")\n", + "model_folder = Path(\"example_path/\")\n", "# path of .mupp file, relative to model_folder\n", - "db_path_rel = \"240304_Godorf_AD.mupp\"\n", + "db_path_rel = \"example_model.mupp\"\n", "# set the id of the sensors and the timezone\n", "timezone = \"UTC+01:00\"\n", - "sensor_conc = \"2209NP80036_RUEB0901\"\n", - "sensor_q = \"2216NF73722_RUEB0901\"" + "sensor_q = \"sensor_name_flow\"" ] }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -124,20 +132,9 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "WindowsPath('d:/entfrachten/tmp_2024-05-13T10.41.48')" - ] - }, - "execution_count": 6, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "# print the path of the temp folder\n", "temp_folder.absolute()" @@ -145,39 +142,34 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# connection to database used to fetch the sensordata\n", + "# in this example a sql data base is used\n", "db_engine = sa.create_engine(\n", - " \"postgresql+psycopg2://postgres:P0stgr3SQL!@137.226.85.103:5432/entfrachten\"\n", + " \"insert link to sql here\"\n", ")\n", - "'''\n", - "Alternativly read the data from excel files:\n", - "'''" + "# Alternativly read the data from excel files" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "MIKE+Py import it's own version of mikeio1d, which does not work for our files and also has odd problems with mikeio. \n", + "Therefore use a multiprocessing.Listener, which run in its own process with its own imports, and reads the file. \n", + "the script \"mikeio_listener.py\" needs to be in the same folder, or has to be startd beforehand. \n", + "--> Update: With newer mike+py versions this problem no longer occurs and the script can be updated according to the water quality calibration." ] }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "starting mike reader\n" - ] - } - ], + "outputs": [], "source": [ - "'''\n", - "MIKE+Py import it's own version of mikeio1d, which does not work for our files and also has odd problems with mikeio.\n", - "Therefore use a multiprocessing.Listener, which run in its own process with its own imports, and reads the file.\n", - "the script \"mikeio_listener.py\" needs to be in the same folder, or has to be startd beforehand.\n", - "'''\n", - "\n", "reader_address = R\"\\\\.\\pipe\\mikeio_pipe\"\n", "auth_key = b\"res1dreader\"\n", "try:\n", @@ -196,20 +188,9 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "True" - ] - }, - "execution_count": 9, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "# open the MIKE+ database using MIKE+Py\n", "dta = DataTableAccess(db_path)\n", @@ -221,7 +202,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -231,7 +212,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -254,22 +235,25 @@ " ], \"only selected sim should be active\"" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "specify which parameters are optimized and in which range they should be \n", + "could make the table in python like this \n", + "param_specs = pd.DataFrame([ \n", + " {\"Table\":\"msm_HParA\",\"Muid\":DEF_STRING,\"Column\":\"RedFactor\",\"Min\":.4,\"Max\":1,\"Steps\":4}, \n", + " {\"Table\":\"msm_HParA\",\"Muid\":DEF_STRING,\"Column\":\"InitLoss\",\"Min\":0,\"Max\":5*M_TO_MM,\"Steps\":4} \n", + "]) \n", + "or load from a file: " + ] + }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ - "'''\n", - "specify which parameters are optimized and in which range they should be\n", - "could make the table in python like this\n", - "param_specs = pd.DataFrame([\n", - " {\"Table\":\"msm_HParA\",\"Muid\":DEF_STRING,\"Column\":\"RedFactor\",\"Min\":.4,\"Max\":1,\"Steps\":4},\n", - " {\"Table\":\"msm_HParA\",\"Muid\":DEF_STRING,\"Column\":\"InitLoss\",\"Min\":0,\"Max\":5*M_TO_MM,\"Steps\":4}\n", - "])\n", - "or load from a file:\n", - "'''\n", - "\n", "param_specs = file_to_df(temp_folder / \"parameter_config.xlsx\")\n", "# give params_specs a sensible string index, this is later used to pass optimization parameters as a dictionary\n", "param_specs.index = pd.Index(\n", @@ -284,424 +268,9 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "<div>\n", - "<style scoped>\n", - " .dataframe tbody tr th:only-of-type {\n", - " vertical-align: middle;\n", - " }\n", - "\n", - " .dataframe tbody tr th {\n", - " vertical-align: top;\n", - " }\n", - "\n", - " .dataframe thead th {\n", - " text-align: right;\n", - " }\n", - "</style>\n", - "<table border=\"1\" class=\"dataframe\">\n", - " <thead>\n", - " <tr style=\"text-align: right;\">\n", - " <th></th>\n", - " <th>Event</th>\n", - " <th>EventWeight</th>\n", - " <th>Start</th>\n", - " <th>End</th>\n", - " <th>Timestep</th>\n", - " <th>SimulationName</th>\n", - " <th>ReferenceFile</th>\n", - " <th>ReferenceColumn</th>\n", - " <th>ReferenceUnitFactor</th>\n", - " <th>ResultFile</th>\n", - " <th>ResultReach</th>\n", - " <th>ResultNode</th>\n", - " <th>ResultColumn</th>\n", - " </tr>\n", - " <tr>\n", - " <th>Label</th>\n", - " <th></th>\n", - " <th></th>\n", - " <th></th>\n", - " <th></th>\n", - " <th></th>\n", - " <th></th>\n", - " <th></th>\n", - " <th></th>\n", - " <th></th>\n", - " <th></th>\n", - " <th></th>\n", - " <th></th>\n", - " <th></th>\n", - " </tr>\n", - " </thead>\n", - " <tbody>\n", - " <tr>\n", - " <th>397_AFS</th>\n", - " <td>397</td>\n", - " <td>1</td>\n", - " <td>2022-09-13 21:36:00+01:00</td>\n", - " <td>2022-09-15 00:52:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_397</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_397BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>405_AFS</th>\n", - " <td>405</td>\n", - " <td>1</td>\n", - " <td>2022-09-27 22:22:00+01:00</td>\n", - " <td>2022-09-28 03:05:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_405</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_405BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>406_AFS</th>\n", - " <td>406</td>\n", - " <td>1</td>\n", - " <td>2022-10-01 02:36:00+01:00</td>\n", - " <td>2022-10-01 20:11:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_406</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_406BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>407_AFS</th>\n", - " <td>407</td>\n", - " <td>1</td>\n", - " <td>2022-10-02 04:43:00+01:00</td>\n", - " <td>2022-10-02 07:31:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_407</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_407BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>411_AFS</th>\n", - " <td>411</td>\n", - " <td>1</td>\n", - " <td>2022-10-17 21:54:00+01:00</td>\n", - " <td>2022-10-18 12:38:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_411</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_411BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>431_AFS</th>\n", - " <td>431</td>\n", - " <td>1</td>\n", - " <td>2022-11-23 17:18:00+01:00</td>\n", - " <td>2022-11-24 00:29:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_431</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_431BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>439_AFS</th>\n", - " <td>439</td>\n", - " <td>1</td>\n", - " <td>2022-12-05 03:28:00+01:00</td>\n", - " <td>2022-12-05 09:12:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_439</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_439BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>490_AFS</th>\n", - " <td>490</td>\n", - " <td>1</td>\n", - " <td>2023-03-07 15:11:00+01:00</td>\n", - " <td>2023-03-10 19:48:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_490</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_490BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>494_AFS</th>\n", - " <td>494</td>\n", - " <td>1</td>\n", - " <td>2023-03-15 03:15:00+01:00</td>\n", - " <td>2023-03-15 11:05:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_494</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_494BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>501_AFS</th>\n", - " <td>501</td>\n", - " <td>1</td>\n", - " <td>2023-03-24 06:48:00+01:00</td>\n", - " <td>2023-03-25 01:55:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_501</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_501BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>528_AFS</th>\n", - " <td>528</td>\n", - " <td>1</td>\n", - " <td>2023-05-11 23:21:00+01:00</td>\n", - " <td>2023-05-12 09:56:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_528</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_528BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>589_AFS</th>\n", - " <td>589</td>\n", - " <td>1</td>\n", - " <td>2023-10-19 14:52:00+01:00</td>\n", - " <td>2023-10-19 19:00:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_589</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_589BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>597_AFS</th>\n", - " <td>597</td>\n", - " <td>1</td>\n", - " <td>2023-10-28 01:11:00+01:00</td>\n", - " <td>2023-10-28 05:58:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_597</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_597BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>614_AFS</th>\n", - " <td>614</td>\n", - " <td>1</td>\n", - " <td>2023-11-24 00:57:00+01:00</td>\n", - " <td>2023-11-24 23:59:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_614</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_614BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>615_AFS</th>\n", - " <td>615</td>\n", - " <td>1</td>\n", - " <td>2023-11-25 14:13:00+01:00</td>\n", - " <td>2023-11-25 21:38:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_615</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_615BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " <tr>\n", - " <th>623_AFS</th>\n", - " <td>623</td>\n", - " <td>1</td>\n", - " <td>2023-12-08 05:14:00+01:00</td>\n", - " <td>2023-12-08 08:35:00+01:00</td>\n", - " <td>1min</td>\n", - " <td>RW_Kal_623</td>\n", - " <td>***readings_smoothed***</td>\n", - " <td>conc_mgpl</td>\n", - " <td>1</td>\n", - " <td>Results Kalibrierung/RW_Kal_623BaseDefault_Net...</td>\n", - " <td>H0069212</td>\n", - " <td></td>\n", - " <td>AFS:H0069212:17.0052</td>\n", - " </tr>\n", - " </tbody>\n", - "</table>\n", - "</div>" - ], - "text/plain": [ - " Event EventWeight Start \\\n", - "Label \n", - "397_AFS 397 1 2022-09-13 21:36:00+01:00 \n", - "405_AFS 405 1 2022-09-27 22:22:00+01:00 \n", - "406_AFS 406 1 2022-10-01 02:36:00+01:00 \n", - "407_AFS 407 1 2022-10-02 04:43:00+01:00 \n", - "411_AFS 411 1 2022-10-17 21:54:00+01:00 \n", - "431_AFS 431 1 2022-11-23 17:18:00+01:00 \n", - "439_AFS 439 1 2022-12-05 03:28:00+01:00 \n", - "490_AFS 490 1 2023-03-07 15:11:00+01:00 \n", - "494_AFS 494 1 2023-03-15 03:15:00+01:00 \n", - "501_AFS 501 1 2023-03-24 06:48:00+01:00 \n", - "528_AFS 528 1 2023-05-11 23:21:00+01:00 \n", - "589_AFS 589 1 2023-10-19 14:52:00+01:00 \n", - "597_AFS 597 1 2023-10-28 01:11:00+01:00 \n", - "614_AFS 614 1 2023-11-24 00:57:00+01:00 \n", - "615_AFS 615 1 2023-11-25 14:13:00+01:00 \n", - "623_AFS 623 1 2023-12-08 05:14:00+01:00 \n", - "\n", - " End Timestep SimulationName \\\n", - "Label \n", - "397_AFS 2022-09-15 00:52:00+01:00 1min RW_Kal_397 \n", - "405_AFS 2022-09-28 03:05:00+01:00 1min RW_Kal_405 \n", - "406_AFS 2022-10-01 20:11:00+01:00 1min RW_Kal_406 \n", - "407_AFS 2022-10-02 07:31:00+01:00 1min RW_Kal_407 \n", - "411_AFS 2022-10-18 12:38:00+01:00 1min RW_Kal_411 \n", - "431_AFS 2022-11-24 00:29:00+01:00 1min RW_Kal_431 \n", - "439_AFS 2022-12-05 09:12:00+01:00 1min RW_Kal_439 \n", - "490_AFS 2023-03-10 19:48:00+01:00 1min RW_Kal_490 \n", - "494_AFS 2023-03-15 11:05:00+01:00 1min RW_Kal_494 \n", - "501_AFS 2023-03-25 01:55:00+01:00 1min RW_Kal_501 \n", - "528_AFS 2023-05-12 09:56:00+01:00 1min RW_Kal_528 \n", - "589_AFS 2023-10-19 19:00:00+01:00 1min RW_Kal_589 \n", - "597_AFS 2023-10-28 05:58:00+01:00 1min RW_Kal_597 \n", - "614_AFS 2023-11-24 23:59:00+01:00 1min RW_Kal_614 \n", - "615_AFS 2023-11-25 21:38:00+01:00 1min RW_Kal_615 \n", - "623_AFS 2023-12-08 08:35:00+01:00 1min RW_Kal_623 \n", - "\n", - " ReferenceFile ReferenceColumn ReferenceUnitFactor \\\n", - "Label \n", - "397_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "405_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "406_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "407_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "411_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "431_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "439_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "490_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "494_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "501_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "528_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "589_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "597_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "614_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "615_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "623_AFS ***readings_smoothed*** conc_mgpl 1 \n", - "\n", - " ResultFile ResultReach \\\n", - "Label \n", - "397_AFS Results Kalibrierung/RW_Kal_397BaseDefault_Net... H0069212 \n", - "405_AFS Results Kalibrierung/RW_Kal_405BaseDefault_Net... H0069212 \n", - "406_AFS Results Kalibrierung/RW_Kal_406BaseDefault_Net... H0069212 \n", - "407_AFS Results Kalibrierung/RW_Kal_407BaseDefault_Net... H0069212 \n", - "411_AFS Results Kalibrierung/RW_Kal_411BaseDefault_Net... H0069212 \n", - "431_AFS Results Kalibrierung/RW_Kal_431BaseDefault_Net... H0069212 \n", - "439_AFS Results Kalibrierung/RW_Kal_439BaseDefault_Net... H0069212 \n", - "490_AFS Results Kalibrierung/RW_Kal_490BaseDefault_Net... H0069212 \n", - "494_AFS Results Kalibrierung/RW_Kal_494BaseDefault_Net... H0069212 \n", - "501_AFS Results Kalibrierung/RW_Kal_501BaseDefault_Net... H0069212 \n", - "528_AFS Results Kalibrierung/RW_Kal_528BaseDefault_Net... H0069212 \n", - "589_AFS Results Kalibrierung/RW_Kal_589BaseDefault_Net... H0069212 \n", - "597_AFS Results Kalibrierung/RW_Kal_597BaseDefault_Net... H0069212 \n", - "614_AFS Results Kalibrierung/RW_Kal_614BaseDefault_Net... H0069212 \n", - "615_AFS Results Kalibrierung/RW_Kal_615BaseDefault_Net... H0069212 \n", - "623_AFS Results Kalibrierung/RW_Kal_623BaseDefault_Net... H0069212 \n", - "\n", - " ResultNode ResultColumn \n", - "Label \n", - "397_AFS AFS:H0069212:17.0052 \n", - "405_AFS AFS:H0069212:17.0052 \n", - "406_AFS AFS:H0069212:17.0052 \n", - "407_AFS AFS:H0069212:17.0052 \n", - "411_AFS AFS:H0069212:17.0052 \n", - "431_AFS AFS:H0069212:17.0052 \n", - "439_AFS AFS:H0069212:17.0052 \n", - "490_AFS AFS:H0069212:17.0052 \n", - "494_AFS AFS:H0069212:17.0052 \n", - "501_AFS AFS:H0069212:17.0052 \n", - "528_AFS AFS:H0069212:17.0052 \n", - "589_AFS AFS:H0069212:17.0052 \n", - "597_AFS AFS:H0069212:17.0052 \n", - "614_AFS AFS:H0069212:17.0052 \n", - "615_AFS AFS:H0069212:17.0052 \n", - "623_AFS AFS:H0069212:17.0052 " - ] - }, - "execution_count": 12, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "# read the event_config.xlsx in which for each sim_muid=events variables are set\n", "events = file_to_df(temp_folder / \"event_config.xlsx\").set_index(\"Label\")\n", @@ -723,7 +292,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -1379,8 +948,8 @@ ], "metadata": { "kernelspec": { - "display_name": "myenv", - "language": "python", + "display_name": "Python 3 (Spyder)", + "language": "python3", "name": "myenv" }, "language_info": { @@ -1393,9 +962,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.18" + "version": "3.9.21" } }, "nbformat": 4, - "nbformat_minor": 2 + "nbformat_minor": 4 } -- GitLab