From 793975374d04b7f97d5100477e5ecd1643961d38 Mon Sep 17 00:00:00 2001 From: Takaya Uchida Date: Wed, 16 Aug 2023 11:53:17 -0400 Subject: [PATCH 1/3] chunk angle to reduce memory usage --- xwavelet/wavelet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwavelet/wavelet.py b/xwavelet/wavelet.py index 677df29..4b9b819 100644 --- a/xwavelet/wavelet.py +++ b/xwavelet/wavelet.py @@ -76,7 +76,7 @@ def _morlet(xo, ntheta, a, s, y, x, dim): # compute morlet wavelet th = np.arange(int(ntheta / 2)) * 2.0 * np.pi / ntheta - th = xr.DataArray(th, dims=["angle"], coords={"angle": th}) + th = xr.DataArray(th, dims=["angle"], coords={"angle": th}).chunk({"angle": 1}) # rotated positions yp = np.sin(th) * s**-1 * (y - y.mean()) From cb2ba05cc41a0fe6fedf5f44209f3be4cc5bfd5b Mon Sep 17 00:00:00 2001 From: Takaya Uchida Date: Wed, 16 Aug 2023 11:57:13 -0400 Subject: [PATCH 2/3] newer python versions --- appveyor.yml | 4 ++-- setup.cfg | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 447804c..365d862 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,8 +2,8 @@ build: false environment: matrix: - - PYTHON: "C:\\Python38" - PYTHON_VERSION: "3.8" + - PYTHON: "C:\\Python310" + PYTHON_VERSION: "3.10" PYTHON_ARCH: "32" MINICONDA: C:\Miniconda3 diff --git a/setup.cfg b/setup.cfg index 5b31123..13ea8fb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -14,9 +14,9 @@ classifiers = License :: OSI Approved :: MIT License Natural Language :: English Operating System :: OS Independent - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 Topic :: Scientific/Engineering project_urls = Documentation = From 3020e3d2195af730196421d8533db331895316e9 Mon Sep 17 00:00:00 2001 From: Takaya Uchida Date: Wed, 16 Aug 2023 12:20:20 -0400 Subject: [PATCH 3/3] Continuous and not discrete --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 13ea8fb..ecd4075 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = xwavelet -description = Discrete wavelet Transform with xarray +description = Continuous wavelet Transform with xarray long_description = file: README.rst long_description_content_type = text/x-rst; charset=UTF-8 url = https://github.com/roxyboy/xwavelet