diff --git a/.github/workflows/lint-and-test.yaml b/.github/workflows/lint-and-test.yaml index 4f2f841..07d10c5 100644 --- a/.github/workflows/lint-and-test.yaml +++ b/.github/workflows/lint-and-test.yaml @@ -5,8 +5,6 @@ on: branches: - main pull_request: - branches: - - main permissions: contents: read diff --git a/.gitignore b/.gitignore index 0d9a62c..447a777 100644 --- a/.gitignore +++ b/.gitignore @@ -81,5 +81,6 @@ output/ /tests/**/*.log /tests/test_data/wedowind/Pitch Angle/ /tests/test_data/wedowind/Vortex Generator/ +/tests/test_data/smarteole/SMARTEOLE-WFC-open-dataset.zip # matplotlib testing **/result_images/ diff --git a/examples/smarteole_example.ipynb b/examples/smarteole_example.ipynb index b8bd1f4..df5a42e 100644 --- a/examples/smarteole_example.ipynb +++ b/examples/smarteole_example.ipynb @@ -2,6 +2,7 @@ "cells": [ { "cell_type": "code", + "execution_count": 1, "id": "23b38e8c-78c6-4d1c-8ae7-53dc12328bd8", "metadata": { "ExecuteTime": { @@ -9,12 +10,11 @@ "start_time": "2025-10-17T09:37:23.067470Z" } }, + "outputs": [], "source": [ "%load_ext autoreload\n", "%autoreload 2" - ], - "outputs": [], - "execution_count": 1 + ] }, { "cell_type": "markdown", @@ -31,6 +31,7 @@ }, { "cell_type": "code", + "execution_count": 2, "id": "6bc89c1a-0b7d-4b2e-beb7-b6cdcfa627af", "metadata": { "ExecuteTime": { @@ -38,6 +39,15 @@ "start_time": "2025-10-17T09:37:23.520362Z" } }, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "wind-up version: 0.4.5\n" + ] + } + ], "source": [ "import logging\n", "\n", @@ -51,17 +61,7 @@ "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", @@ -73,6 +73,7 @@ }, { "cell_type": "code", + "execution_count": 3, "id": "de9489f8-f258-44fc-ad7d-63f23714299a", "metadata": { "ExecuteTime": { @@ -80,6 +81,15 @@ "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", @@ -94,17 +104,7 @@ " 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", @@ -116,6 +116,7 @@ }, { "cell_type": "code", + "execution_count": 4, "id": "713a7c25-b340-4851-b8fe-d2ca96571eb6", "metadata": { "ExecuteTime": { @@ -123,6 +124,7 @@ "start_time": "2025-10-17T09:37:23.926190Z" } }, + "outputs": [], "source": [ "from smarteole_utils import SmartEoleExtractor\n", "\n", @@ -132,9 +134,7 @@ " zipped_fpath=outpur_dir / filename,\n", " analysis_timebase_s=analysis_timebase_s,\n", ")" - ], - "outputs": [], - "execution_count": 4 + ] }, { "cell_type": "markdown", @@ -146,6 +146,7 @@ }, { "cell_type": "code", + "execution_count": 5, "id": "fa97d149-d877-42d0-9bbd-465f5d54a04c", "metadata": { "ExecuteTime": { @@ -153,38 +154,9 @@ "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", "