Skip to content
Open
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
24,744 changes: 24,744 additions & 0 deletions Workyard/07DA001_discharge_daily_withoutmissing.csv

Large diffs are not rendered by default.

894 changes: 894 additions & 0 deletions Workyard/Algorithm.ipynb

Large diffs are not rendered by default.

135 changes: 135 additions & 0 deletions Workyard/Bonus trial notebooks/Calibration file deletion.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "180f6063-930f-49dd-86b3-9bab1c4d82af",
"metadata": {},
"source": [
"## Startup"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "5037dc08-d28b-4299-b220-454411e406a4",
"metadata": {},
"outputs": [],
"source": [
"# General python\n",
"import warnings\n",
"warnings.filterwarnings(\"ignore\", category=UserWarning)\n",
"\n",
"import numpy as np\n",
"from pathlib import Path\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"import xarray as xr\n",
"\n",
"# Niceties\n",
"from rich import print\n",
"\n",
"from ipywidgets import IntProgress\n",
"from IPython.display import display\n",
"import shutil"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "c2bdabd1-470a-450e-bbd2-5a49b57e18f6",
"metadata": {},
"outputs": [],
"source": [
"# General eWaterCycle\n",
"import ewatercycle\n",
"import ewatercycle.models\n",
"import ewatercycle.forcing"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "6acd5b8a-f2fb-45ee-8b14-aa0c7f14ad04",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #00ff00; text-decoration-color: #00ff00; font-style: italic\">True</span>\n",
"</pre>\n"
],
"text/plain": [
"\u001b[3;92mTrue\u001b[0m\n"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
"[PosixPath('/home/maxime/BEP-maxime/Workyard/calibration_temp/test .txt'),\n",
" PosixPath('/home/maxime/BEP-maxime/Workyard/calibration_temp/.ipynb_checkpoints')]"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"calibration_temp = Path.home() / \"BEP-maxime\" / \"Workyard\" / \"calibration_temp\"\n",
"\n",
"print(calibration_temp.exists())\n",
"\n",
"list(calibration_temp.iterdir())[:10]"
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "03635a99-3dbb-4216-b27e-bfdc27f8ed21",
"metadata": {},
"outputs": [],
"source": [
"# if calibration_temp.exists() and calibration_temp.is_dir():\n",
"# for item in calibration_temp.iterdir():\n",
"# if item.is_dir():\n",
"# shutil.rmtree(item)\n",
"# else:\n",
"# item.unlink()\n",
"# else:\n",
"# print(\"Folder does not exist or is not a folder.\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "14ad44ce-1fcf-4b6c-9525-9e5e49d04e34",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading