1.x updates

This commit is contained in:
2026-05-19 08:34:22 -04:00
parent 3f3fce62d3
commit 9d91ac8ebc
53 changed files with 4541 additions and 2111 deletions

View File

@@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# 03 Recovery & wellness\n",
"# 03 \u2014 Recovery & wellness\n",
"\n",
"Sleep, HRV, RHR, body battery, and how they relate to training load."
]
@@ -16,23 +16,22 @@
"outputs": [],
"source": [
"import sys\n",
"sys.path.insert(0, '..')\n",
"import numpy as np\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"from analysis import open_conn, load_wellness, joined\n",
"from openrun import open_conn, load_wellness, joined\n",
"\n",
"conn = open_conn()\n",
"w = load_wellness(conn)\n",
"j = joined(conn)\n",
"print(f'{len(w)} days, {w.index.min().date()} {w.index.max().date()}')"
"print(f'{len(w)} days, {w.index.min().date()} \u2192 {w.index.max().date()}')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Recent 30 days at a glance"
"## Recent 30 days \u2014 at a glance"
]
},
{
@@ -74,7 +73,7 @@
"fig, ax = plt.subplots(figsize=(13, 4))\n",
"stages.tail(60).plot.area(ax=ax, alpha=0.7, color=['#1f3a93','#6dd5fa','#9b59b6','#e74c3c'])\n",
"ax.set_ylabel('Hours')\n",
"ax.set_title('Sleep stages last 60 nights')\n",
"ax.set_title('Sleep stages \u2014 last 60 nights')\n",
"ax.grid(alpha=0.3)\n",
"plt.tight_layout()"
]
@@ -185,9 +184,15 @@
}
],
"metadata": {
"kernelspec": {"display_name": ".venv", "language": "python", "name": "python3"},
"language_info": {"name": "python"}
"kernelspec": {
"display_name": ".venv",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
}