pyExSi 0.43.2__tar.gz → 0.43.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. {pyexsi-0.43.2 → pyexsi-0.43.4}/.github/workflows/python-package.yml +2 -2
  2. pyexsi-0.43.4/.github/workflows/release-and-publish-to-pypi.yml +53 -0
  3. {pyexsi-0.43.2 → pyexsi-0.43.4}/PKG-INFO +13 -12
  4. {pyexsi-0.43.2 → pyexsi-0.43.4}/pyExSi/__init__.py +1 -1
  5. {pyexsi-0.43.2 → pyexsi-0.43.4}/pyExSi/signals.py +5 -3
  6. {pyexsi-0.43.2 → pyexsi-0.43.4}/pyproject.toml +7 -6
  7. {pyexsi-0.43.2 → pyexsi-0.43.4}/readme.rst +5 -5
  8. {pyexsi-0.43.2 → pyexsi-0.43.4}/readthedocs.yaml +1 -1
  9. pyexsi-0.43.2/.github/workflows/release-and-publish-to-pypi.yml +0 -28
  10. {pyexsi-0.43.2 → pyexsi-0.43.4}/.gitignore +0 -0
  11. {pyexsi-0.43.2 → pyexsi-0.43.4}/CONTRIBUTING.rst +0 -0
  12. {pyexsi-0.43.2 → pyexsi-0.43.4}/LICENSE +0 -0
  13. {pyexsi-0.43.2 → pyexsi-0.43.4}/Showcase.ipynb +0 -0
  14. {pyexsi-0.43.2 → pyexsi-0.43.4}/docs/Makefile +0 -0
  15. {pyexsi-0.43.2 → pyexsi-0.43.4}/docs/make.bat +0 -0
  16. {pyexsi-0.43.2 → pyexsi-0.43.4}/docs/requirements.txt +0 -0
  17. {pyexsi-0.43.2 → pyexsi-0.43.4}/docs/source/code.rst +0 -0
  18. {pyexsi-0.43.2 → pyexsi-0.43.4}/docs/source/conf.py +0 -0
  19. {pyexsi-0.43.2 → pyexsi-0.43.4}/docs/source/examples/example_nonstationarity.rst +0 -0
  20. {pyexsi-0.43.2 → pyexsi-0.43.4}/docs/source/examples/example_signals.rst +0 -0
  21. {pyexsi-0.43.2 → pyexsi-0.43.4}/docs/source/examples.rst +0 -0
  22. {pyexsi-0.43.2 → pyexsi-0.43.4}/docs/source/getting_started.rst +0 -0
  23. {pyexsi-0.43.2 → pyexsi-0.43.4}/docs/source/index.rst +0 -0
  24. {pyexsi-0.43.2 → pyexsi-0.43.4}/example/example_nonstationarity.py +0 -0
  25. {pyexsi-0.43.2 → pyexsi-0.43.4}/example/example_signals.py +0 -0
  26. {pyexsi-0.43.2 → pyexsi-0.43.4}/requirements.dev.txt +0 -0
  27. {pyexsi-0.43.2 → pyexsi-0.43.4}/requirements.txt +0 -0
  28. {pyexsi-0.43.2 → pyexsi-0.43.4}/setup.py +0 -0
  29. {pyexsi-0.43.2 → pyexsi-0.43.4}/tests/generate_freezed_data.py +0 -0
  30. {pyexsi-0.43.2 → pyexsi-0.43.4}/tests/test_basic.py +0 -0
  31. {pyexsi-0.43.2 → pyexsi-0.43.4}/tests/test_data_nonstationarity.pkl +0 -0
  32. {pyexsi-0.43.2 → pyexsi-0.43.4}/tests/test_data_signals.pkl +0 -0
  33. {pyexsi-0.43.2 → pyexsi-0.43.4}/tests/test_scipy_chirp.py +0 -0
@@ -8,7 +8,7 @@ jobs:
8
8
  runs-on: ubuntu-latest
9
9
  strategy:
10
10
  matrix:
11
- python-version: ["3.10", "3.11", "3.12"]
11
+ python-version: ["3.13", "3.14", "3.15"]
12
12
 
13
13
  steps:
14
14
  - uses: actions/checkout@v3
@@ -29,4 +29,4 @@ jobs:
29
29
  flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
30
30
  - name: Test with pytest
31
31
  run: |
32
- pytest
32
+ pytest
@@ -0,0 +1,53 @@
1
+ name: Release and Publish to PyPI
2
+
3
+ # Creating a GitHub Release (or pushing a tag vX.Y.Z) runs the tests, checks
4
+ # that the tag matches the version in pyproject.toml,
5
+ # builds the package and publishes it to PyPI through trusted publishing
6
+ # (no API token: PyPI trusts this workflow's OIDC token, see
7
+ # https://docs.pypi.org/trusted-publishers/).
8
+
9
+ on:
10
+ push:
11
+ tags:
12
+ - 'v*'
13
+
14
+ permissions:
15
+ id-token: write
16
+ contents: read
17
+
18
+ jobs:
19
+ publish:
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - name: Checkout code
23
+ uses: actions/checkout@v7
24
+
25
+ - name: Set up Python
26
+ uses: actions/setup-python@v7
27
+ with:
28
+ python-version: '3.13'
29
+
30
+ - name: Check that the tag matches the package version
31
+ run: |
32
+ tag="${GITHUB_REF#refs/tags/v}"
33
+ version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
34
+ if [ "$tag" != "$version" ]; then
35
+ echo "tag v$tag and pyproject.toml $version do not agree" >&2
36
+ exit 1
37
+ fi
38
+
39
+ - name: Install dependencies
40
+ run: pip install -U build twine pytest
41
+
42
+ - name: Run tests
43
+ run: |
44
+ pip install .
45
+ pytest
46
+
47
+ - name: Build package
48
+ run: |
49
+ python -m build
50
+ python -m twine check dist/*
51
+
52
+ - name: Publish to PyPI
53
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -1,10 +1,10 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.5
2
2
  Name: pyExSi
3
- Version: 0.43.2
3
+ Version: 0.43.4
4
4
  Summary: Excitation signals as used in structural dynamics and vibration fatigue.
5
5
  Project-URL: homepage, https://github.com/ladisk/pyExSi
6
6
  Project-URL: documentation, https://pyexsi.readthedocs.io/en/latest/index.html
7
- Project-URL: source, https://github.com/sdypy/pyExSi
7
+ Project-URL: source, https://github.com/ladisk/pyExSi
8
8
  Author-email: "Aleš Zorman, Domen Gorjup, Janko Slavič" <janko.slavic@fs.uni-lj.si>
9
9
  Maintainer-email: "Janko Slavič, Domen Gorjup, Aleš Zorman" <janko.slavic@fs.uni-lj.si>
10
10
  License-Expression: MIT
@@ -13,17 +13,18 @@ Keywords: dynamic testing,excitation signal,structural dynamics
13
13
  Classifier: Development Status :: 3 - Alpha
14
14
  Classifier: Intended Audience :: Developers
15
15
  Classifier: License :: OSI Approved :: MIT License
16
- Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Classifier: Programming Language :: Python :: 3.15
17
19
  Classifier: Topic :: Scientific/Engineering
18
- Requires-Python: >=3.10
20
+ Requires-Python: >=3.13
19
21
  Requires-Dist: numpy>=1.18
20
- Requires-Dist: pylint
21
- Requires-Dist: pytest
22
22
  Requires-Dist: scipy
23
23
  Provides-Extra: dev
24
24
  Requires-Dist: black; extra == 'dev'
25
25
  Requires-Dist: build; extra == 'dev'
26
26
  Requires-Dist: matplotlib; extra == 'dev'
27
+ Requires-Dist: pylint; extra == 'dev'
27
28
  Requires-Dist: pytest; extra == 'dev'
28
29
  Requires-Dist: sphinx; extra == 'dev'
29
30
  Requires-Dist: sphinx-copybutton>=0.5.2; extra == 'dev'
@@ -32,7 +33,7 @@ Requires-Dist: twine; extra == 'dev'
32
33
  Requires-Dist: wheel; extra == 'dev'
33
34
  Description-Content-Type: text/x-rst
34
35
 
35
- |DOI| |Build Status| |Docs Status|
36
+ |DOI| |pytest| |Docs Status|
36
37
 
37
38
  pyExSi - Excitation signals as used in structural dynamics and vibration fatigue
38
39
  --------------------------------------------------------------------------------
@@ -78,7 +79,7 @@ A simple example on how to generate random signals on PSD basis:
78
79
  PSD = es.get_psd(freq, freq_lower, freq_upper) # one-sided flat-shaped PSD
79
80
 
80
81
  #get gaussian stationary signal
81
- gausian_signal = es.random_gaussian((N, PSD, fs)
82
+ gausian_signal = es.random_gaussian(N, PSD, fs)
82
83
 
83
84
  #get non-gaussian non-stationary signal, with kurtosis k_u=10
84
85
  #amplitude modulation, modulating signal defined by PSD
@@ -91,9 +92,9 @@ A simple example on how to generate random signals on PSD basis:
91
92
 
92
93
  .. |Docs Status| image:: https://readthedocs.org/projects/pyexsi/badge/
93
94
  :target: https://pyexsi.readthedocs.io
94
-
95
- .. |Build Status| image:: https://travis-ci.com/ladisk/pyExSi.svg?branch=main
96
- :target: https://travis-ci.com/ladisk/pyExSi
95
+
96
+ .. |pytest| image:: https://github.com/ladisk/pyExSi/actions/workflows/python-package.yml/badge.svg
97
+ :target: https://github.com/ladisk/pyExSi/actions
97
98
 
98
99
  .. |DOI| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.4431844.svg
99
100
  :target: https://doi.org/10.5281/zenodo.4431844
@@ -1,2 +1,2 @@
1
- __version__ = '0.43.2'
1
+ __version__ = '0.43.4'
2
2
  from .signals import *
@@ -74,13 +74,15 @@ def pseudo_random(N, rg=None):
74
74
  """
75
75
  Pseudorandom distribution.
76
76
 
77
- Magnitudes are 1, phase is random.
77
+ Generated random data has amplitude spectrum of magnuted 1 and
78
+ uniformly distributed phase.
78
79
 
79
80
  :param N: Number of points.
80
81
  :type N: int
81
82
  :param rg: Initialized Generator object
82
83
  :type rg: numpy.random._generator.Generator
83
- :returns: Random samples from the “standard normal” distribution
84
+ :returns: Random samples with amplitude spectrum of magnuted 1 and
85
+ uniformly distributed phase.
84
86
 
85
87
  Example
86
88
  --------
@@ -849,4 +851,4 @@ def get_kurtosis(signal):
849
851
  if __name__ == "__main__":
850
852
  time = np.arange(1000)/10000
851
853
  burst = sine_sweep(time=time, freq_start=3000, freq_stop=15000, mode='logarithmic')
852
- print(burst)
854
+ print(burst)
@@ -4,25 +4,25 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pyExSi"
7
- version = "0.43.2"
7
+ version = "0.43.4"
8
8
  authors = [{name = "Aleš Zorman, Domen Gorjup, Janko Slavič", email = "janko.slavic@fs.uni-lj.si"}]
9
9
  maintainers = [{name = "Janko Slavič, Domen Gorjup, Aleš Zorman", email = "janko.slavic@fs.uni-lj.si"}]
10
10
  license = "MIT"
11
11
  description = "Excitation signals as used in structural dynamics and vibration fatigue."
12
12
  readme = "readme.rst"
13
13
  keywords = ["excitation signal", "structural dynamics", "dynamic testing"]
14
- requires-python = ">=3.10"
14
+ requires-python = ">=3.13"
15
15
  dependencies = [
16
16
  "numpy>=1.18",
17
17
  "scipy",
18
- "pylint",
19
- "pytest",
20
18
  ]
21
19
  classifiers = [
22
20
  'Development Status :: 3 - Alpha',
23
21
  'Intended Audience :: Developers',
24
22
  'Topic :: Scientific/Engineering',
25
- 'Programming Language :: Python :: 3.10',
23
+ 'Programming Language :: Python :: 3.13',
24
+ 'Programming Language :: Python :: 3.14',
25
+ 'Programming Language :: Python :: 3.15',
26
26
  "License :: OSI Approved :: MIT License",
27
27
  ]
28
28
 
@@ -37,9 +37,10 @@ dev = [
37
37
  "matplotlib",
38
38
  "sphinx-copybutton>=0.5.2",
39
39
  "black",
40
+ "pylint",
40
41
  ]
41
42
 
42
43
  [project.urls]
43
44
  homepage = "https://github.com/ladisk/pyExSi"
44
45
  documentation = "https://pyexsi.readthedocs.io/en/latest/index.html"
45
- source = "https://github.com/sdypy/pyExSi"
46
+ source = "https://github.com/ladisk/pyExSi"
@@ -1,4 +1,4 @@
1
- |DOI| |Build Status| |Docs Status|
1
+ |DOI| |pytest| |Docs Status|
2
2
 
3
3
  pyExSi - Excitation signals as used in structural dynamics and vibration fatigue
4
4
  --------------------------------------------------------------------------------
@@ -44,7 +44,7 @@ A simple example on how to generate random signals on PSD basis:
44
44
  PSD = es.get_psd(freq, freq_lower, freq_upper) # one-sided flat-shaped PSD
45
45
 
46
46
  #get gaussian stationary signal
47
- gausian_signal = es.random_gaussian((N, PSD, fs)
47
+ gausian_signal = es.random_gaussian(N, PSD, fs)
48
48
 
49
49
  #get non-gaussian non-stationary signal, with kurtosis k_u=10
50
50
  #amplitude modulation, modulating signal defined by PSD
@@ -57,9 +57,9 @@ A simple example on how to generate random signals on PSD basis:
57
57
 
58
58
  .. |Docs Status| image:: https://readthedocs.org/projects/pyexsi/badge/
59
59
  :target: https://pyexsi.readthedocs.io
60
-
61
- .. |Build Status| image:: https://travis-ci.com/ladisk/pyExSi.svg?branch=main
62
- :target: https://travis-ci.com/ladisk/pyExSi
60
+
61
+ .. |pytest| image:: https://github.com/ladisk/pyExSi/actions/workflows/python-package.yml/badge.svg
62
+ :target: https://github.com/ladisk/pyExSi/actions
63
63
 
64
64
  .. |DOI| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.4431844.svg
65
65
  :target: https://doi.org/10.5281/zenodo.4431844
@@ -8,7 +8,7 @@ version: 2
8
8
  build:
9
9
  os: ubuntu-22.04
10
10
  tools:
11
- python: "3.11"
11
+ python: "3.13"
12
12
  # You can also specify other tool versions:
13
13
  # nodejs: "20"
14
14
  # rust: "1.70"
@@ -1,28 +0,0 @@
1
- name: Release and Publish to PyPI
2
- on:
3
- push:
4
- tags:
5
- - 'v*'
6
- jobs:
7
- publish:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - name: Checkout code
11
- uses: actions/checkout@v2
12
-
13
- - name: Set up Python
14
- uses: actions/setup-python@v2
15
- with:
16
- python-version: '3.11'
17
-
18
- - name: Install dependencies
19
- run: pip install -U build
20
-
21
- - name: Build package
22
- run: python -m build
23
-
24
- - name: Publish to PyPI
25
- uses: pypa/gh-action-pypi-publish@v1.4.2
26
- with:
27
- user: __token__
28
- password: ${{ secrets.PYPI_API_TOKEN }}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes