From 9dbe8cd21882270ee5f0f4ade80345ec06d0434a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Ke=C3=A7eci?= Date: Mon, 22 Sep 2025 09:53:36 +0000 Subject: [PATCH 1/4] Create pyproject.toml --- pyproject.toml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0a3b948 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,42 @@ +# pyproject.toml + +[build-system] +requires = ["setuptools>=77.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "nolds" +version = "nolds" + +authors = [ + { name="Christopher Schölzel", email="christopher.schoelzel@gmx.net" }, +] +description = "Nonlinear measures for dynamical systems (based on one-dimensional time series)" +readme = "README.md" +requires-python = ">=3.10" +license = { file="LICENSE" } +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Intended Audience :: Science/Research", + "Topic :: Scientific/Engineering :: Visualization", +] + +# Ana bağımlılıklarınız +dependencies = [ + "numpy", + "matplotlib", + "'setuptools", + "future", +] + +[project.optional-dependencies] +test = ["pytest", "pytest-cov", "pytest-mock", "ruff", "numpy", "matplotlib", "scikit-learn", "quantumrandom",] + +[tool.setuptools.packages.find] +where = ["."] + +[project.urls] +Homepage = "https://github.com/CSchoel/nolds" +Repository = "https://github.com/CSchoel/nolds" From f92003369e79415fdf7b25b00c746187f3b15be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Ke=C3=A7eci?= Date: Mon, 22 Sep 2025 09:57:24 +0000 Subject: [PATCH 2/4] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0a3b948..09eda05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" [project] name = "nolds" -version = "nolds" +version = "0.6.2" authors = [ { name="Christopher Schölzel", email="christopher.schoelzel@gmx.net" }, From 5973d9f606412c5fe58598eed6ef31f52e47bea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Ke=C3=A7eci?= Date: Mon, 22 Sep 2025 10:01:37 +0000 Subject: [PATCH 3/4] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 09eda05..4650273 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ classifiers = [ dependencies = [ "numpy", "matplotlib", - "'setuptools", + "setuptools", "future", ] From 7aa6599ad3295b6b3cf2865f7a1d179208dc7957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Ke=C3=A7eci?= Date: Mon, 22 Sep 2025 11:20:28 +0000 Subject: [PATCH 4/4] Update datasets.py --- nolds/datasets.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nolds/datasets.py b/nolds/datasets.py index 65489a9..43eac28 100644 --- a/nolds/datasets.py +++ b/nolds/datasets.py @@ -6,7 +6,7 @@ oct, open, pow, round, super, filter, map, zip ) import numpy as np -import pkg_resources +import importlib.resources import datetime @@ -144,7 +144,7 @@ def load_qrandom(): the dataset """ fname = "datasets/qrandom.npy" - with pkg_resources.resource_stream(__name__, fname) as f: + with importlib.resources.open_binary(__name__, fname) as f: return np.load(f) @@ -159,7 +159,7 @@ def load_brown72(): the dataset """ fname = "datasets/brown72.npy" - with pkg_resources.resource_stream(__name__, fname) as f: + with importlib.resources.open_binary(__name__, fname) as f: return np.load(f) @@ -185,10 +185,10 @@ def load_lorenz_physionet(): x- and y-coordinates of the line fitting step in the PhysioNet output """ fname = "datasets/lorenz.txt" - with pkg_resources.resource_stream(__name__, fname) as f: + with importlib.resources.open_binary(__name__, fname) as f: data_in = np.loadtxt(f) fname = "datasets/lorenz_physionet.txt" - with pkg_resources.resource_stream(__name__, fname) as f: + with importlib.resources.open_binary(__name__, fname) as f: data_out = np.loadtxt(f) return data_in, data_out @@ -393,7 +393,7 @@ def pad_opening_values(values): data = [] for index in ["^JKSE", "^N225", "^NDX"]: fname = "datasets/{}.csv".format(index) - with pkg_resources.resource_stream(__name__, fname) as f: + with importlib.resources.open_binary(__name__, fname) as f: days, values = load_finance_yahoo_data(f) pad_opening_values(values) data.append((days, values))