diff --git a/.github/workflows/test_notebooks.yaml b/.github/workflows/test_notebooks.yaml index ff3f0e90..bd1462f4 100644 --- a/.github/workflows/test_notebooks.yaml +++ b/.github/workflows/test_notebooks.yaml @@ -58,8 +58,10 @@ jobs: 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 mth5 + # 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 # Explicitly include nbconvert & ipykernel uv pip install jupyter nbconvert nbformat ipykernel 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 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( 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\")" ] } ],