diff --git a/examples/smarteole_example.ipynb b/examples/smarteole_example.ipynb index 268d025..b8bd1f4 100644 --- a/examples/smarteole_example.ipynb +++ b/examples/smarteole_example.ipynb @@ -2,14 +2,19 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, "id": "23b38e8c-78c6-4d1c-8ae7-53dc12328bd8", - "metadata": {}, - "outputs": [], + "metadata": { + "ExecuteTime": { + "end_time": "2025-10-17T09:37:23.190451Z", + "start_time": "2025-10-17T09:37:23.067470Z" + } + }, "source": [ "%load_ext autoreload\n", "%autoreload 2" - ] + ], + "outputs": [], + "execution_count": 1 }, { "cell_type": "markdown", @@ -26,20 +31,37 @@ }, { "cell_type": "code", - "execution_count": 2, "id": "6bc89c1a-0b7d-4b2e-beb7-b6cdcfa627af", "metadata": { "ExecuteTime": { - "end_time": "2025-04-03T15:41:04.780969Z", - "start_time": "2025-04-03T15:41:03.265486Z" + "end_time": "2025-10-17T09:37:23.761973Z", + "start_time": "2025-10-17T09:37:23.520362Z" } }, - "outputs": [], "source": [ + "import logging\n", + "\n", "from helpers import setup_logger\n", "\n", - "setup_logger()" - ] + "import wind_up\n", + "\n", + "setup_logger()\n", + "\n", + "\n", + "logger = logging.getLogger(__name__)\n", + "msg = f\"wind-up version: {wind_up.__version__}\"\n", + "logger.info(msg)" + ], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "wind-up version: 0.4.4\n" + ] + } + ], + "execution_count": 2 }, { "cell_type": "markdown", @@ -51,23 +73,13 @@ }, { "cell_type": "code", - "execution_count": 3, "id": "de9489f8-f258-44fc-ad7d-63f23714299a", "metadata": { "ExecuteTime": { - "end_time": "2025-04-03T15:41:04.830323Z", - "start_time": "2025-04-03T15:41:04.793728Z" + "end_time": "2025-10-17T09:37:23.891381Z", + "start_time": "2025-10-17T09:37:23.810837Z" } }, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "All filenames are locally cached, no download necessary.\n" - ] - } - ], "source": [ "from helpers import download_zenodo_data\n", "\n", @@ -82,7 +94,17 @@ " filenames=[filename],\n", " cache_overwrite=False, # change to True if you want to force the re-download\n", ")" - ] + ], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "All filenames are locally cached, no download necessary.\n" + ] + } + ], + "execution_count": 3 }, { "cell_type": "markdown", @@ -94,15 +116,13 @@ }, { "cell_type": "code", - "execution_count": 4, "id": "713a7c25-b340-4851-b8fe-d2ca96571eb6", "metadata": { "ExecuteTime": { - "end_time": "2025-04-03T15:41:15.978251Z", - "start_time": "2025-04-03T15:41:06.047099Z" + "end_time": "2025-10-17T09:37:27.910715Z", + "start_time": "2025-10-17T09:37:23.926190Z" } }, - "outputs": [], "source": [ "from smarteole_utils import SmartEoleExtractor\n", "\n", @@ -112,7 +132,9 @@ " zipped_fpath=outpur_dir / filename,\n", " analysis_timebase_s=analysis_timebase_s,\n", ")" - ] + ], + "outputs": [], + "execution_count": 4 }, { "cell_type": "markdown", @@ -124,17 +146,45 @@ }, { "cell_type": "code", - "execution_count": 5, "id": "fa97d149-d877-42d0-9bbd-465f5d54a04c", "metadata": { "ExecuteTime": { - "end_time": "2025-04-03T15:41:16.312261Z", - "start_time": "2025-04-03T15:41:15.997230Z" + "end_time": "2025-10-17T09:37:28.255818Z", + "start_time": "2025-10-17T09:37:27.926625Z" } }, + "source": [ + "scada_df = extractor.unpack_smarteole_scada()\n", + "scada_df.head(3)" + ], "outputs": [ { "data": { + "text/plain": [ + " TurbineName ActivePowerMean ActivePowerSD \\\n", + "TimeStamp_StartFormat \n", + "2020-02-17 16:30:00 SMV1 2017.8566 57.0837 \n", + "2020-02-17 16:40:00 SMV1 1946.2472 91.7614 \n", + "2020-02-17 16:50:00 SMV1 1946.5069 98.3934 \n", + "\n", + " WindSpeedMean WindSpeedSD YawAngleMean YawAngleMin \\\n", + "TimeStamp_StartFormat \n", + "2020-02-17 16:30:00 13.6164 1.2411 247.884662 239.930 \n", + "2020-02-17 16:40:00 13.0139 1.0178 259.686000 259.686 \n", + "2020-02-17 16:50:00 12.5818 0.9482 259.686000 259.686 \n", + "\n", + " YawAngleMax PitchAngleMean GenRpmMean AmbientTemp \\\n", + "TimeStamp_StartFormat \n", + "2020-02-17 16:30:00 259.686 6.0648 1800.5394 11.6191 \n", + "2020-02-17 16:40:00 259.686 3.5153 1798.7652 11.5493 \n", + "2020-02-17 16:50:00 259.686 2.1367 1799.5171 11.4929 \n", + "\n", + " ShutdownDuration \n", + "TimeStamp_StartFormat \n", + "2020-02-17 16:30:00 0 \n", + "2020-02-17 16:40:00 0 \n", + "2020-02-17 16:50:00 0 " + ], "text/html": [ "
\n", "