Skip to content

Commit

Permalink
Improve import situation in peilbeheerst
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Jul 30, 2024
1 parent 67338e8 commit 66cfbd3
Show file tree
Hide file tree
Showing 28 changed files with 36 additions and 123 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,15 +449,6 @@
" logging.error(f\"Could not read the log file: {log_exception}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"stop"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
9 changes: 0 additions & 9 deletions src/peilbeheerst_model/Parametrize/Delfland_parametrize.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -374,15 +374,6 @@
" logging.error(f\"Could not read the log file: {log_exception}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"stop"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,15 +362,6 @@
" logging.error(f\"Could not read the log file: {log_exception}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"stop"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,15 +419,6 @@
" logging.error(f\"Could not read the log file: {log_exception}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"stop"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
9 changes: 0 additions & 9 deletions src/peilbeheerst_model/Parametrize/Rijnland_nieuw.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -371,15 +371,6 @@
" logging.error(f\"Could not read the log file: {log_exception}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"stop"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"import pathlib\n",
"import warnings\n",
"\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"import peilbeheerst_model.ribasim_parametrization as ribasim_param\n",
"import ribasim\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,15 +394,6 @@
" logging.error(f\"Could not read the log file: {log_exception}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"stop"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"import peilbeheerst_model.ribasim_parametrization as ribasim_param\n",
"import ribasim\n",
"import ribasim.nodes\n",
"from peilbeheerst_model.add_storage_basins import AddStorageBasin\n",
"from ribasim import Node\n",
"from ribasim.nodes import (\n",
" pump,\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@
"source": [
"import geopandas as gpd\n",
"import numpy as np\n",
"\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from general_functions import *"
"from general_functions import read_gpkg_layers"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@
"source": [
"import geopandas as gpd\n",
"import numpy as np\n",
"\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from general_functions import *"
"import pandas as pd\n",
"from general_functions import read_gpkg_layers"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@
"source": [
"import geopandas as gpd\n",
"import numpy as np\n",
"\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from general_functions import *"
"from general_functions import read_gpkg_layers"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@
"source": [
"import geopandas as gpd\n",
"import numpy as np\n",
"\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from general_functions import *"
"import pandas as pd\n",
"from general_functions import read_gpkg_layers"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@
"source": [
"import geopandas as gpd\n",
"import numpy as np\n",
"\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from general_functions import *"
"import pandas as pd\n",
"import shapely\n",
"from general_functions import read_gpkg_layers"
]
},
{
Expand Down Expand Up @@ -353,7 +351,6 @@
"from itertools import combinations\n",
"\n",
"gdf = Wetterskip[\"peilgebied\"]\n",
"gdf = test\n",
"gdf = gdf[6:]\n",
"# Initialize a list to store index pairs with more than 90% overlap\n",
"overlapping_pairs = []\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@
"source": [
"import geopandas as gpd\n",
"import numpy as np\n",
"\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from general_functions import *"
"import pandas as pd\n",
"import shapely\n",
"from general_functions import read_gpkg_layers"
]
},
{
Expand All @@ -54,6 +52,7 @@
"source": [
"# define relative paths\n",
"waterschap = \"Zuiderzeeland\"\n",
"waterschap2 = \"Zuiderzeeland\"\n",
"\n",
"data_path = f\"../projects/4750_20/Data_postprocessed/Waterschappen/{waterschap}/{waterschap}.gpkg\"\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@
"source": [
"import geopandas as gpd\n",
"import numpy as np\n",
"\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from general_functions import *"
"import pandas as pd\n",
"from general_functions import read_gpkg_layers"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@
"source": [
"import geopandas as gpd\n",
"import numpy as np\n",
"\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from general_functions import *"
"import pandas as pd\n",
"from general_functions import read_gpkg_layers"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@
"source": [
"import geopandas as gpd\n",
"import numpy as np\n",
"\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from general_functions import *"
"import pandas as pd\n",
"import shapely\n",
"from general_functions import read_gpkg_layers"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@
"source": [
"import geopandas as gpd\n",
"import numpy as np\n",
"\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from general_functions import *"
"import pandas as pd\n",
"from general_functions import read_gpkg_layers"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"metadata": {},
"outputs": [],
"source": [
"# import packages and functions\n",
"import os\n",
"\n",
"import geopandas as gpd\n",
Expand All @@ -24,10 +23,8 @@
"metadata": {},
"outputs": [],
"source": [
"from general_functions import *\n",
"from general_functions import show_layers_and_columns, store_data\n",
"\n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"pd.set_option(\"display.max_columns\", None)"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"metadata": {},
"outputs": [],
"source": [
"# import packages and functions\n",
"import os\n",
"\n",
"import geopandas as gpd\n",
Expand All @@ -21,7 +20,7 @@
"metadata": {},
"outputs": [],
"source": [
"from general_functions import *"
"from general_functions import read_gpkg_layers, show_layers_and_columns, store_data"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
"metadata": {},
"outputs": [],
"source": [
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from general_functions import *"
"from general_functions import read_gpkg_layers, show_layers_and_columns, store_data"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"outputs": [],
"source": [
"from general_functions import *"
"from general_functions import read_gpkg_layers, show_layers_and_columns, store_data"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"metadata": {},
"outputs": [],
"source": [
"from general_functions import *"
"from general_functions import read_gpkg_layers, show_layers_and_columns, store_data"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"metadata": {},
"outputs": [],
"source": [
"from general_functions import *"
"from general_functions import burn_in_peilgebieden, read_gpkg_layers, show_layers_and_columns, store_data"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"metadata": {},
"outputs": [],
"source": [
"from general_functions import *"
"from general_functions import read_gpkg_layers, show_layers_and_columns, store_data"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"\n",
"import geopandas as gpd\n",
"import numpy as np\n",
"import pandas as pd"
"import pandas as pd\n",
"from shapely.geometry import Polygon"
]
},
{
Expand All @@ -22,7 +23,7 @@
"metadata": {},
"outputs": [],
"source": [
"from general_functions import *"
"from general_functions import read_gpkg_layers, show_layers_and_columns, store_data"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"\n",
"import geopandas as gpd\n",
"import pandas as pd\n",
"from general_functions import *\n",
"from general_functions import read_gpkg_layers, show_layers_and_columns, store_data\n",
"\n",
"pd.set_option(\"display.max_columns\", None)"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"metadata": {},
"outputs": [],
"source": [
"from general_functions import *"
"from general_functions import show_layers_and_columns, store_data"
]
},
{
Expand Down

0 comments on commit 66cfbd3

Please sign in to comment.