From d00a4c639d37232a0d63da3445016db06b3385c4 Mon Sep 17 00:00:00 2001 From: JP Date: Tue, 14 Apr 2026 21:17:52 -0700 Subject: [PATCH 1/6] Update tests.yaml testing mth5 branch split_io --- .github/workflows/tests.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index da755086..6677ce2a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -54,9 +54,7 @@ jobs: # uv pip install "mt_metadata[obspy] @ git+https://github.com/kujaku11/mt_metadata.git" # uv pip install git+https://github.com/kujaku11/mth5.git uv pip install "mt_metadata[obspy]" - uv pip install mth5 - - + uv pip install git+https://github.com/kujaku11/mth5.git@split_io # uv pip install mth5 uv pip install git+https://github.com/kujaku11/mth5_test_data.git # Explicitly include nbconvert & ipykernel From b670dc91622c733c361b1f1d5ea22c9ecec98dcf Mon Sep 17 00:00:00 2001 From: JP Date: Tue, 14 Apr 2026 21:27:58 -0700 Subject: [PATCH 2/6] Update frequency_band_helpers.py --- aurora/time_series/frequency_band_helpers.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/aurora/time_series/frequency_band_helpers.py b/aurora/time_series/frequency_band_helpers.py index c7eb9a03..3c9d171c 100644 --- a/aurora/time_series/frequency_band_helpers.py +++ b/aurora/time_series/frequency_band_helpers.py @@ -2,14 +2,13 @@ This module contains functions that are associated with time series of Fourier coefficients TODO: Move these methods to mth5.processing.spectre.frequency_band_helpers """ -from loguru import logger -from mt_metadata.processing.aurora import ( - DecimationLevel as AuroraDecimationLevel, -) -from mt_metadata.processing.aurora import Band -from mth5.timeseries.spectre.spectrogram import extract_band from typing import Optional, Tuple + import xarray as xr +from loguru import logger +from mt_metadata.processing.aurora import Band +from mt_metadata.processing.aurora import DecimationLevel as AuroraDecimationLevel +from mt_timeseries.spectre.spectrogram import extract_band def get_band_for_tf_estimate( From ba9ca1964ed6655ecd3c4082096bfd042e23297b Mon Sep 17 00:00:00 2001 From: JP Date: Tue, 14 Apr 2026 22:22:26 -0700 Subject: [PATCH 3/6] Update mth5 installation method in workflow Replace mth5 installation with a specific GitHub repository. --- .github/workflows/test_notebooks.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_notebooks.yaml b/.github/workflows/test_notebooks.yaml index ff3f0e90..c8e89429 100644 --- a/.github/workflows/test_notebooks.yaml +++ b/.github/workflows/test_notebooks.yaml @@ -59,7 +59,8 @@ jobs: uv pip install -e ".[dev,test]" uv pip install mt_metadata[obspy] uv pip install "mt_metadata[obspy]" - uv pip install mth5 + # uv pip install mth5 + uv pip install git+https://github.com/kujaku11/mth5@split_io uv pip install git+https://github.com/kujaku11/mth5_test_data.git # Explicitly include nbconvert & ipykernel uv pip install jupyter nbconvert nbformat ipykernel From 5abb7fa40c8a2528ef61e59b45ef5f36d2f14a35 Mon Sep 17 00:00:00 2001 From: JP Date: Fri, 17 Apr 2026 11:40:59 -0700 Subject: [PATCH 4/6] updated notebooks to use appropriate arguments --- docs/examples/operate_aurora.ipynb | 12 ++++++------ docs/tutorials/process_cas04_multiple_station.ipynb | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/examples/operate_aurora.ipynb b/docs/examples/operate_aurora.ipynb index c52312e5..4dcc0040 100644 --- a/docs/examples/operate_aurora.ipynb +++ b/docs/examples/operate_aurora.ipynb @@ -2968,7 +2968,7 @@ }, { "cell_type": "code", - "execution_count": 35, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -2983,12 +2983,12 @@ } ], "source": [ - "tf_cls.write(fn=\"emtfxml_test.xml\", file_type=\"emtfxml\")" + "tf_cls.write(\"emtfxml_test.xml\", file_type=\"emtfxml\")" ] }, { "cell_type": "code", - "execution_count": 36, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -3016,12 +3016,12 @@ } ], "source": [ - "tf_cls.write(fn=\"emtfxml_test.edi\", file_type=\"edi\")" + "tf_cls.write(\"emtfxml_test.edi\", file_type=\"edi\")" ] }, { "cell_type": "code", - "execution_count": 37, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -3036,7 +3036,7 @@ } ], "source": [ - "tf_cls.write(fn=\"emtfxml_test.zss\", file_type=\"zmm\")" + "tf_cls.write(\"emtfxml_test.zss\", file_type=\"zmm\")" ] }, { diff --git a/docs/tutorials/process_cas04_multiple_station.ipynb b/docs/tutorials/process_cas04_multiple_station.ipynb index 1c1aaf65..763cccc6 100644 --- a/docs/tutorials/process_cas04_multiple_station.ipynb +++ b/docs/tutorials/process_cas04_multiple_station.ipynb @@ -3033,7 +3033,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": null, "id": "2ee6e117-c7e1-40ba-9981-5f2a189e404a", "metadata": {}, "outputs": [ @@ -3049,9 +3049,9 @@ } ], "source": [ - "tf_cls.write(fn=f\"{tf_file_base}.xml\", file_type=\"emtfxml\")\n", - "tf_cls.write(fn=f\"{tf_file_base}.edi\", file_type=\"edi\")\n", - "tf_cls.write(fn=f\"{tf_file_base}.zrr\", file_type=\"zrr\")" + "tf_cls.write(f\"{tf_file_base}.xml\", file_type=\"emtfxml\")\n", + "tf_cls.write(f\"{tf_file_base}.edi\", file_type=\"edi\")\n", + "tf_cls.write(f\"{tf_file_base}.zrr\", file_type=\"zrr\")" ] }, { @@ -7048,7 +7048,7 @@ }, { "cell_type": "code", - "execution_count": 45, + "execution_count": null, "id": "358195b0", "metadata": {}, "outputs": [ @@ -7077,7 +7077,7 @@ } ], "source": [ - "tf.write(fn=\"CAS04_rrNVR08.edi\", file_type=\"edi\")" + "tf.write(\"CAS04_rrNVR08.edi\", file_type=\"edi\")" ] } ], From c0a6ecad0331cf10e4e67183d3b077fae782c1af Mon Sep 17 00:00:00 2001 From: JP Date: Fri, 17 Apr 2026 12:44:33 -0700 Subject: [PATCH 5/6] Update mt_metadata installation to use GitHub patch --- .github/workflows/test_notebooks.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_notebooks.yaml b/.github/workflows/test_notebooks.yaml index c8e89429..dce8dd88 100644 --- a/.github/workflows/test_notebooks.yaml +++ b/.github/workflows/test_notebooks.yaml @@ -57,8 +57,9 @@ jobs: uv pip install --upgrade pip uv pip install 'setuptools<68' uv pip install -e ".[dev,test]" - uv pip install mt_metadata[obspy] - uv pip install "mt_metadata[obspy]" + # uv pip install mt_metadata[obspy] + uv pip install "mt_metadata[obspy] @ git+https://github.com/kujaku11/mt_metadata@patches" + # uv pip install "mt_metadata[obspy]" # uv pip install mth5 uv pip install git+https://github.com/kujaku11/mth5@split_io uv pip install git+https://github.com/kujaku11/mth5_test_data.git From 2c14804bba4b89b780d9f4f27336871915a0e643 Mon Sep 17 00:00:00 2001 From: JP Date: Fri, 17 Apr 2026 14:15:34 -0700 Subject: [PATCH 6/6] Toggle installation of mt_metadata package --- .github/workflows/test_notebooks.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_notebooks.yaml b/.github/workflows/test_notebooks.yaml index dce8dd88..bd1462f4 100644 --- a/.github/workflows/test_notebooks.yaml +++ b/.github/workflows/test_notebooks.yaml @@ -57,8 +57,8 @@ jobs: uv pip install --upgrade pip uv pip install 'setuptools<68' uv pip install -e ".[dev,test]" - # uv pip install mt_metadata[obspy] - uv pip install "mt_metadata[obspy] @ git+https://github.com/kujaku11/mt_metadata@patches" + uv pip install mt_metadata[obspy] + # uv pip install "mt_metadata[obspy] @ git+https://github.com/kujaku11/mt_metadata@patches" # uv pip install "mt_metadata[obspy]" # uv pip install mth5 uv pip install git+https://github.com/kujaku11/mth5@split_io