From 0d6b1b8a3a88b5d3203e055be228b84349f68cc0 Mon Sep 17 00:00:00 2001 From: Alison Wu Date: Wed, 6 Nov 2024 19:08:32 -0500 Subject: [PATCH] moved resample out of parsers --- news/resample-relocation.rst | 23 ++++++++++++++++++++++ src/diffpy/utils/parsers/__init__.py | 8 -------- src/diffpy/utils/{parsers => }/resample.py | 0 tests/test_resample.py | 2 +- 4 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 news/resample-relocation.rst rename src/diffpy/utils/{parsers => }/resample.py (100%) diff --git a/news/resample-relocation.rst b/news/resample-relocation.rst new file mode 100644 index 00000000..f8ffaf7f --- /dev/null +++ b/news/resample-relocation.rst @@ -0,0 +1,23 @@ +**Added:** + +* + +**Changed:** + +* Moved resampler out of parsers, new path is diffpy.utils.resample + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +* diff --git a/src/diffpy/utils/parsers/__init__.py b/src/diffpy/utils/parsers/__init__.py index a2104181..cd95dd63 100644 --- a/src/diffpy/utils/parsers/__init__.py +++ b/src/diffpy/utils/parsers/__init__.py @@ -16,12 +16,4 @@ """Various utilities related to data parsing and manipulation. """ -from .loaddata import loadData -from .resample import resample -from .serialization import deserialize_data, serialize_data - -# silence the pyflakes syntax checker -assert loadData or resample or True -assert serialize_data or deserialize_data or True - # End of file diff --git a/src/diffpy/utils/parsers/resample.py b/src/diffpy/utils/resample.py similarity index 100% rename from src/diffpy/utils/parsers/resample.py rename to src/diffpy/utils/resample.py diff --git a/tests/test_resample.py b/tests/test_resample.py index fa9c7e70..cdaee0ae 100644 --- a/tests/test_resample.py +++ b/tests/test_resample.py @@ -1,7 +1,7 @@ import numpy as np import pytest -from diffpy.utils.parsers.resample import wsinterp +from diffpy.utils.resample import wsinterp def test_wsinterp():