Skip to content

Commit

Permalink
pixi run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Oct 21, 2024
1 parent 7e32b75 commit 5e4ac26
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 124 deletions.
6 changes: 3 additions & 3 deletions src/peilbeheerst_model/01_test_parse_crossings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:ribasim]",
"display_name": "default",
"language": "python",
"name": "conda-env-ribasim-py"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -591,7 +591,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
56 changes: 10 additions & 46 deletions src/peilbeheerst_model/02_crossings_to_ribasim_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "0",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -30,7 +30,7 @@
"sys.path.append(str(module_path))\n",
"\n",
"# load crossings_to_ribasim.py\n",
"sys.path.append(\"peilbeheerst_model\")\n"
"sys.path.append(\"peilbeheerst_model\")"
]
},
{
Expand All @@ -43,22 +43,10 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "2",
"metadata": {},
"outputs": [
{
"ename": "NameError",
"evalue": "name 'stop' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[2], line 62\u001b[0m\n\u001b[1;32m 59\u001b[0m model \u001b[38;5;241m=\u001b[39m Model(starttime\u001b[38;5;241m=\u001b[39mmodel_characteristics[\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mstarttime\u001b[39m\u001b[38;5;124m\"\u001b[39m], endtime\u001b[38;5;241m=\u001b[39mmodel_characteristics[\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mendtime\u001b[39m\u001b[38;5;124m\"\u001b[39m], crs\u001b[38;5;241m=\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mEPSG:28992\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n\u001b[1;32m 61\u001b[0m model\u001b[38;5;241m.\u001b[39medge\u001b[38;5;241m.\u001b[39mdf \u001b[38;5;241m=\u001b[39m edge\n\u001b[0;32m---> 62\u001b[0m \u001b[43mstop\u001b[49m\n\u001b[1;32m 63\u001b[0m model\u001b[38;5;241m.\u001b[39mbasin\u001b[38;5;241m.\u001b[39mnode\u001b[38;5;241m.\u001b[39mdf \u001b[38;5;241m=\u001b[39m basin_node\n\u001b[1;32m 64\u001b[0m model\u001b[38;5;241m.\u001b[39mbasin\u001b[38;5;241m.\u001b[39mprofile \u001b[38;5;241m=\u001b[39m basin_profile\n",
"\u001b[0;31mNameError\u001b[0m: name 'stop' is not defined"
]
}
],
"outputs": [],
"source": [
"model_characteristics = {\n",
" # model description\n",
Expand Down Expand Up @@ -389,18 +377,10 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "9",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Done\n"
]
}
],
"outputs": [],
"source": [
"model_characteristics = {\n",
" # model description\n",
Expand Down Expand Up @@ -504,18 +484,10 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "11",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Done\n"
]
}
],
"outputs": [],
"source": [
"model_characteristics = {\n",
" # model description\n",
Expand Down Expand Up @@ -750,18 +722,10 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "15",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Done\n"
]
}
],
"outputs": [],
"source": [
"model_characteristics = {\n",
" # model description\n",
Expand Down
Loading

0 comments on commit 5e4ac26

Please sign in to comment.