diff --git a/.gitignore b/.gitignore index 755fc9b..0b52195 100644 --- a/.gitignore +++ b/.gitignore @@ -41,4 +41,7 @@ poetry.lock # Build artifacts build/ dist/ -*.egg \ No newline at end of file +*.egg + +demos/Backup +demos/Lib \ No newline at end of file diff --git a/core/__init__.py b/core/__init__.py new file mode 100644 index 0000000..1a1b95e --- /dev/null +++ b/core/__init__.py @@ -0,0 +1,2 @@ +from core.smoothness import Smoothness +from core.sync import Synchronization \ No newline at end of file diff --git a/core/data_models/__init__.py b/core/data_models/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/core/smoothness.py b/core/smoothness.py index 876b50b..44fa32d 100644 --- a/core/smoothness.py +++ b/core/smoothness.py @@ -1,5 +1,4 @@ import numpy as np -from collections import deque from scipy.signal import savgol_filter from scipy.fft import fft, fftfreq diff --git a/core/sync.py b/core/sync.py index 95a661c..6e2ff58 100644 --- a/core/sync.py +++ b/core/sync.py @@ -1,13 +1,14 @@ import sys, os -from core.data_models.sliding_window import SlidingWindow - if os.getcwd() not in sys.path: sys.path.append(os.getcwd()) + import numpy as np from collections import deque from scipy.signal import hilbert, butter, filtfilt +from core.data_models.sliding_window import SlidingWindow + class Synchronization: # Initialization of the Synchronization class with parameters for window size, sensitivity, phase output, and filter settings. diff --git a/demos/synch_demo.1.toe b/demos/synch_demo.1.toe new file mode 100644 index 0000000..85f28db Binary files /dev/null and b/demos/synch_demo.1.toe differ diff --git a/demos/synch_demo.59.toe b/demos/synch_demo.59.toe new file mode 100644 index 0000000..b98b555 Binary files /dev/null and b/demos/synch_demo.59.toe differ diff --git a/demos/synch_demo.toe b/demos/synch_demo.toe new file mode 100644 index 0000000..b98b555 Binary files /dev/null and b/demos/synch_demo.toe differ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..16728f4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,25 @@ +[build-system] +requires = ["setuptools>=78.1.1", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "cp-testing-package" +version = "0.0.1-alpha" + +dependencies = [ + "numpy==1.24.1", + "scipy==1.15.0" + +] + +[project.optional-dependencies] +dev = [ + "build==1.3.0", + "mediapipe==0.10.21", + "setuptools==78.1.1", + "wheel==0.45.1" +] + +[tool.setuptools] +[tool.setuptools.packages.find] +where = ["."] \ No newline at end of file