From 348706d60b39f30149dc36bf3619b74e720019b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Tue, 6 Jan 2026 18:10:22 +0100 Subject: [PATCH] add pyproj --- mysignal/__init__.py | 2 +- mysignal/phasefreq.py | 2 +- pyproject.toml | 64 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 pyproject.toml diff --git a/mysignal/__init__.py b/mysignal/__init__.py index b75ec92..f9b925b 100644 --- a/mysignal/__init__.py +++ b/mysignal/__init__.py @@ -1 +1 @@ -__version__ = '0.1.30' +__version__ = '0.1.31' diff --git a/mysignal/phasefreq.py b/mysignal/phasefreq.py index 33a151a..5353173 100644 --- a/mysignal/phasefreq.py +++ b/mysignal/phasefreq.py @@ -613,7 +613,7 @@ def plot_phases(e_time, e_filtered, e_frequencies, s_filtered, n_modes, df, outp phase = df[df['mode'] == mod]['phase'].iloc[0] delay = df[df['mode'] == mod]['delay'].iloc[0] - ax[mod, 0].set_title(f'Freq: {freq:.3f}, Phase: {phase:.3f}, Delay: {delay:.3f}' ) + ax[mod, 0].set_title(f'Freq: {freq:.3f}, Phase: {phase:.3f}, Period: {1/freq:.3f}, Delay: {delay:.3f}' ) ax[mod, 0].plot(e_time, e_filtered[mod], label='e') ax[mod, 0].plot(e_time, s_filtered[mod], label='s') #ax[mod].set_xlim(left=20, right=230) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..51cb859 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,64 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "mysignal" +description = "A short description of the project" +readme = "README.md" +requires-python = ">=3.6" +license = {text = "MIT"} +authors = [ + {name = "Your Name", email = "your.email@example.com"} +] +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Topic :: Software Development :: Build Tools", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", +] +dependencies = [ + "numpy", + "scipy", + "pandas", + "PyWavelets" +] + +[project.urls] +Homepage = "https://github.com/yourusername/yourproject" + +[tool.setuptools] +# Inclure les fichiers de données spécifiés dans MANIFEST.in +include-package-data = true +# Trouver automatiquement les packages +packages = {find = {}} + +# Configuration optionnelle pour scripts d'entrée +# [project.scripts] +# sample = "sample:main" + +[tool.bumpver] +current_version = "0.1.31" # Définissez votre version initiale ici +version_pattern = "MAJOR.MINOR.PATCH" +commit_message = "bump version {old_version} -> {new_version}" +tag_message = "v{new_version}" +commit = true +tag = true +push = false + +[tool.bumpver.file_patterns] +"pyproject.toml" = [ + 'current_version = "{version}"', + 'version = "{version}"', +] +"setup.py" = [ + 'version = read_version(\'mysignal\')', +] +"mysignal/__init__.py" = [ + '__version__ = "{version}"' +]