Skip to content

Commit

Permalink
Add DCT-PLS smoothing/interpolation algorithm (#315)
Browse files Browse the repository at this point in the history
* Add DCT-PLS python implementation

* Update import

* Update examples

* Update DCT PLS docs

* Pin OS versions
  • Loading branch information
wpreimes authored Jan 8, 2025
1 parent d8e51ed commit 98dc169
Show file tree
Hide file tree
Showing 9 changed files with 1,550 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# and OS versions as possible (especially windows to create .whl packages,
# see step "Create wheel and dist package")
python-version: ['3.9', '3.10', '3.11', '3.12']
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
os: ["ubuntu-22.04", "windows-2022", "macos-14"]
name: py${{ matrix.python-version }}@${{ matrix.os }}
runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
elif [ "${{ runner.os }}" == "Windows" ]; then
OS="win"
fi
pip install setuptools_scm twine cibuildwheel
python setup.py sdist --dist-dir artifacts/dist_whl
export CIBW_BUILD="cp${PY}-${OS}*"
Expand Down
9 changes: 6 additions & 3 deletions docs/examples/anomalies.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"pycharm": {
"is_executing": true
},
"jupyter": {
"is_executing": true
}
},
"outputs": [],
"source": [
"%matplotlib inline\n",
"\n",
Expand All @@ -27,7 +28,9 @@
"from pytesmo.utils import rootdir\n",
"import warnings\n",
"import matplotlib.pyplot as plt"
]
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "markdown",
Expand Down
Binary file added docs/examples/assets/2d_peaks_n256.mat
Binary file not shown.
Binary file added docs/examples/assets/matlab_initguess.mat
Binary file not shown.
707 changes: 707 additions & 0 deletions docs/examples/dct_pls.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 98dc169

Please sign in to comment.