sdypy-FRF 0.1.0__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.
- sdypy_frf-0.1.0/.gitignore +109 -0
- sdypy_frf-0.1.0/CONTRIBUTING.rst +78 -0
- sdypy_frf-0.1.0/License +21 -0
- sdypy_frf-0.1.0/PKG-INFO +116 -0
- sdypy_frf-0.1.0/README.rst +87 -0
- sdypy_frf-0.1.0/docs/Makefile +19 -0
- sdypy_frf-0.1.0/docs/make.bat +35 -0
- sdypy_frf-0.1.0/docs/source/conf.py +197 -0
- sdypy_frf-0.1.0/docs/source/index.rst +27 -0
- sdypy_frf-0.1.0/examples/__init__.py +0 -0
- sdypy_frf-0.1.0/pyproject.toml +41 -0
- sdypy_frf-0.1.0/requirements.dev.txt +9 -0
- sdypy_frf-0.1.0/requirements.txt +2 -0
- sdypy_frf-0.1.0/sdypy/FRF/__init__.py +7 -0
- sdypy_frf-0.1.0/tests/__init__.py +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
*.egg-info/
|
|
24
|
+
.installed.cfg
|
|
25
|
+
*.egg
|
|
26
|
+
MANIFEST
|
|
27
|
+
|
|
28
|
+
# PyInstaller
|
|
29
|
+
# Usually these files are written by a python script from a template
|
|
30
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
31
|
+
*.manifest
|
|
32
|
+
*.spec
|
|
33
|
+
|
|
34
|
+
# Installer logs
|
|
35
|
+
pip-log.txt
|
|
36
|
+
pip-delete-this-directory.txt
|
|
37
|
+
|
|
38
|
+
# Unit test / coverage reports
|
|
39
|
+
htmlcov/
|
|
40
|
+
.tox/
|
|
41
|
+
.coverage
|
|
42
|
+
.coverage.*
|
|
43
|
+
.cache
|
|
44
|
+
nosetests.xml
|
|
45
|
+
coverage.xml
|
|
46
|
+
*.cover
|
|
47
|
+
.hypothesis/
|
|
48
|
+
|
|
49
|
+
# Translations
|
|
50
|
+
*.mo
|
|
51
|
+
*.pot
|
|
52
|
+
|
|
53
|
+
# Django stuff:
|
|
54
|
+
*.log
|
|
55
|
+
.static_storage/
|
|
56
|
+
.media/
|
|
57
|
+
local_settings.py
|
|
58
|
+
|
|
59
|
+
# Flask stuff:
|
|
60
|
+
instance/
|
|
61
|
+
.webassets-cache
|
|
62
|
+
|
|
63
|
+
# Scrapy stuff:
|
|
64
|
+
.scrapy
|
|
65
|
+
|
|
66
|
+
# Sphinx documentation
|
|
67
|
+
docs/_build/
|
|
68
|
+
docs/build/
|
|
69
|
+
docs/source/api/
|
|
70
|
+
|
|
71
|
+
# PyBuilder
|
|
72
|
+
target/
|
|
73
|
+
|
|
74
|
+
# Jupyter Notebook
|
|
75
|
+
.ipynb_checkpoints
|
|
76
|
+
|
|
77
|
+
# pyenv
|
|
78
|
+
.python-version
|
|
79
|
+
|
|
80
|
+
# celery beat schedule file
|
|
81
|
+
celerybeat-schedule
|
|
82
|
+
|
|
83
|
+
# SageMath parsed files
|
|
84
|
+
*.sage.py
|
|
85
|
+
|
|
86
|
+
# Environments
|
|
87
|
+
.env
|
|
88
|
+
.venv
|
|
89
|
+
env/
|
|
90
|
+
venv/
|
|
91
|
+
ENV/
|
|
92
|
+
env.bak/
|
|
93
|
+
venv.bak/
|
|
94
|
+
|
|
95
|
+
# Spyder project settings
|
|
96
|
+
.spyderproject
|
|
97
|
+
.spyproject
|
|
98
|
+
|
|
99
|
+
# Rope project settings
|
|
100
|
+
.ropeproject
|
|
101
|
+
|
|
102
|
+
# mkdocs documentation
|
|
103
|
+
/site
|
|
104
|
+
|
|
105
|
+
# mypy
|
|
106
|
+
.mypy_cache/
|
|
107
|
+
|
|
108
|
+
# VSCode
|
|
109
|
+
.vscode/
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
Contributing Guide
|
|
2
|
+
==================
|
|
3
|
+
|
|
4
|
+
Contributions are welcome and greatly appreciated!
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
.. _contributing-workflow-label:
|
|
8
|
+
|
|
9
|
+
Workflow
|
|
10
|
+
--------
|
|
11
|
+
|
|
12
|
+
A bug-fix or enhancement is delivered using a pull request. A good pull request
|
|
13
|
+
should cover one bug-fix or enhancement feature. This ensures the change set is
|
|
14
|
+
easier to review and less likely to need major re-work or even be rejected.
|
|
15
|
+
|
|
16
|
+
The workflow that developers typically use to fix a bug or add enhancements
|
|
17
|
+
is as follows.
|
|
18
|
+
|
|
19
|
+
* Fork the ``sdypy_template_project`` repo into your account.
|
|
20
|
+
|
|
21
|
+
* Obtain the source by cloning it onto your development machine.
|
|
22
|
+
|
|
23
|
+
.. code-block:: console
|
|
24
|
+
|
|
25
|
+
$ git clone ttps://github.com/sdypy/sdypy_template_project.git
|
|
26
|
+
$ cd sdypy_template_project
|
|
27
|
+
|
|
28
|
+
* Create a branch for local development:
|
|
29
|
+
|
|
30
|
+
.. code-block:: console
|
|
31
|
+
|
|
32
|
+
$ git checkout -b name-of-your-bugfix-or-feature
|
|
33
|
+
|
|
34
|
+
Now you can make your changes locally.
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
* Develop fix or enhancement:
|
|
38
|
+
|
|
39
|
+
* Make a fix or enhancement (e.g. modify a class, method, function, module,
|
|
40
|
+
etc).
|
|
41
|
+
|
|
42
|
+
* Update an existing unit test or create a new unit test module to verify
|
|
43
|
+
the change works as expected.
|
|
44
|
+
|
|
45
|
+
* Run the test suite.
|
|
46
|
+
|
|
47
|
+
.. code-block:: console
|
|
48
|
+
|
|
49
|
+
$ pytest
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
* The docs should be updated for anything but trivial bug fixes.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
Perform docs check.
|
|
56
|
+
|
|
57
|
+
.. code-block:: console
|
|
58
|
+
|
|
59
|
+
$ cd docs
|
|
60
|
+
$ make clean
|
|
61
|
+
$ make html
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
* Commit and push changes to your fork.
|
|
65
|
+
|
|
66
|
+
.. code-block:: console
|
|
67
|
+
|
|
68
|
+
$ git add .
|
|
69
|
+
$ git commit -m "A detailed description of the changes."
|
|
70
|
+
$ git push origin name-of-your-bugfix-or-feature
|
|
71
|
+
|
|
72
|
+
A pull request should preferably only have one commit upon the current
|
|
73
|
+
master HEAD, (via rebases and squash).
|
|
74
|
+
|
|
75
|
+
* Submit a pull request through the service website (e.g. Github, Gitlab).
|
|
76
|
+
|
|
77
|
+
* Check automated continuous integration steps all pass. Fix any problems
|
|
78
|
+
if necessary and update the pull request.
|
sdypy_frf-0.1.0/License
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Domen Gorjup 2019
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
sdypy_frf-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: sdypy-FRF
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Frequency response function as used in structural dynamics.
|
|
5
|
+
Project-URL: homepage, https://github.com/sdypy/sdypy-FRF
|
|
6
|
+
Project-URL: documentation, https://pyfrf.readthedocs.io/en/latest/index.html
|
|
7
|
+
Project-URL: source, https://github.com/sdypy/sdypy-FRF
|
|
8
|
+
Author-email: "Janko Slavič et al." <janko.slavic@fs.uni-lj.si>
|
|
9
|
+
Maintainer-email: "Janko Slavič et al." <janko.slavic@fs.uni-lj.si>
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: License
|
|
12
|
+
Keywords: Frequency response function,MIMO,SIMO/MISO,SISO,structural dynamics
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
|
+
Requires-Dist: pyfrf>=1.0
|
|
20
|
+
Provides-Extra: dev
|
|
21
|
+
Requires-Dist: build; extra == 'dev'
|
|
22
|
+
Requires-Dist: pytest; extra == 'dev'
|
|
23
|
+
Requires-Dist: sphinx; extra == 'dev'
|
|
24
|
+
Requires-Dist: sphinx-copybutton>=0.5.2; extra == 'dev'
|
|
25
|
+
Requires-Dist: sphinx-rtd-theme; extra == 'dev'
|
|
26
|
+
Requires-Dist: twine; extra == 'dev'
|
|
27
|
+
Requires-Dist: wheel; extra == 'dev'
|
|
28
|
+
Description-Content-Type: text/x-rst
|
|
29
|
+
|
|
30
|
+
sdypy-FRF
|
|
31
|
+
=========
|
|
32
|
+
|
|
33
|
+
Frequency response function as used in structural dynamics.
|
|
34
|
+
-----------------------------------------------------------
|
|
35
|
+
|
|
36
|
+
The ``sdypy-FRF`` is a namespace project of the ``sdypy`` framework and is a direct link
|
|
37
|
+
to the ``pyFRF`` package.
|
|
38
|
+
|
|
39
|
+
Use the ``sdypy`` package to convieniently access the functionallity of the
|
|
40
|
+
`pyFRF <https://github.com/ladisk/pyFRF>`_ package through its namespace (see example below).
|
|
41
|
+
|
|
42
|
+
Other functionalities of the ``sdypy`` framework include:
|
|
43
|
+
|
|
44
|
+
- `sdypy-EMA <https://github.com/sdypy/sdypy-EMA>`_: Experimental Modal Analysis
|
|
45
|
+
- `sdypy-io <https://github.com/sdypy/sdypy-io>`_: Input/Output operations (LVM files, UFF files)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
For more information check out the showcase examples and see documentation_.
|
|
49
|
+
|
|
50
|
+
Basic ``sdypy-FRF`` usage:
|
|
51
|
+
--------------------------
|
|
52
|
+
|
|
53
|
+
Import the module:
|
|
54
|
+
~~~~~~~~~~~~~~~~~~~
|
|
55
|
+
|
|
56
|
+
.. code:: python
|
|
57
|
+
|
|
58
|
+
from sdypy import FRF
|
|
59
|
+
|
|
60
|
+
Make an instance of ``FRF`` class:
|
|
61
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
62
|
+
|
|
63
|
+
.. code:: python
|
|
64
|
+
|
|
65
|
+
a = FRF.FRF(
|
|
66
|
+
sampling_freq,
|
|
67
|
+
exc=None,
|
|
68
|
+
resp=None,
|
|
69
|
+
exc_type='f', resp_type='a',
|
|
70
|
+
window='none',
|
|
71
|
+
weighting='linear',
|
|
72
|
+
fft_len=None,
|
|
73
|
+
nperseg=None,
|
|
74
|
+
noverlap=None,
|
|
75
|
+
archive_time_data=False,
|
|
76
|
+
frf_type='H1',
|
|
77
|
+
copy=True
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
Adding data:
|
|
81
|
+
~~~~~~~~~~~~
|
|
82
|
+
We can add the excitation and response data at the beginning through ``exc`` and ``resp`` arguments, otherwise, the excitation and response
|
|
83
|
+
data can be added later via ``add_data()`` method:
|
|
84
|
+
|
|
85
|
+
.. code:: python
|
|
86
|
+
|
|
87
|
+
a.add_data(exc, resp)
|
|
88
|
+
|
|
89
|
+
Computing FRF:
|
|
90
|
+
~~~~~~~~~~~~~~
|
|
91
|
+
Preferable way to get the frequency response functions is via ``get_FRF()`` method:
|
|
92
|
+
|
|
93
|
+
.. code:: python
|
|
94
|
+
|
|
95
|
+
frf = a.get_FRF(type="default", form="receptance")
|
|
96
|
+
|
|
97
|
+
We can also directly get the requested FRF via other methods: ``get_H1()``, ``get_H2()``, ``get_Hv()`` and, ``get_ods_frf()``:
|
|
98
|
+
|
|
99
|
+
.. code:: python
|
|
100
|
+
|
|
101
|
+
H1 = a.get_H1()
|
|
102
|
+
H2 = a.get_H2()
|
|
103
|
+
Hv = a.get_Hv()
|
|
104
|
+
ods_frf = a.get_ods_frf()
|
|
105
|
+
|
|
106
|
+
.. _documentation: https://pyfrf.readthedocs.io/en/latest/
|
|
107
|
+
|
|
108
|
+
|pytest|
|
|
109
|
+
|
|
110
|
+
|binder| to test the *Showcase.ipynb*.
|
|
111
|
+
|
|
112
|
+
.. |binder| image:: https://mybinder.org/badge_logo.svg
|
|
113
|
+
:target: https://mybinder.org/v2/gh/ladisk/pyFRF/main
|
|
114
|
+
.. |pytest| image:: https://github.com/ladisk/pyFRF/actions/workflows/python-package.yml/badge.svg
|
|
115
|
+
:target: https://github.com/ladisk/pyFRF/actions
|
|
116
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
sdypy-FRF
|
|
2
|
+
=========
|
|
3
|
+
|
|
4
|
+
Frequency response function as used in structural dynamics.
|
|
5
|
+
-----------------------------------------------------------
|
|
6
|
+
|
|
7
|
+
The ``sdypy-FRF`` is a namespace project of the ``sdypy`` framework and is a direct link
|
|
8
|
+
to the ``pyFRF`` package.
|
|
9
|
+
|
|
10
|
+
Use the ``sdypy`` package to convieniently access the functionallity of the
|
|
11
|
+
`pyFRF <https://github.com/ladisk/pyFRF>`_ package through its namespace (see example below).
|
|
12
|
+
|
|
13
|
+
Other functionalities of the ``sdypy`` framework include:
|
|
14
|
+
|
|
15
|
+
- `sdypy-EMA <https://github.com/sdypy/sdypy-EMA>`_: Experimental Modal Analysis
|
|
16
|
+
- `sdypy-io <https://github.com/sdypy/sdypy-io>`_: Input/Output operations (LVM files, UFF files)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
For more information check out the showcase examples and see documentation_.
|
|
20
|
+
|
|
21
|
+
Basic ``sdypy-FRF`` usage:
|
|
22
|
+
--------------------------
|
|
23
|
+
|
|
24
|
+
Import the module:
|
|
25
|
+
~~~~~~~~~~~~~~~~~~~
|
|
26
|
+
|
|
27
|
+
.. code:: python
|
|
28
|
+
|
|
29
|
+
from sdypy import FRF
|
|
30
|
+
|
|
31
|
+
Make an instance of ``FRF`` class:
|
|
32
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
33
|
+
|
|
34
|
+
.. code:: python
|
|
35
|
+
|
|
36
|
+
a = FRF.FRF(
|
|
37
|
+
sampling_freq,
|
|
38
|
+
exc=None,
|
|
39
|
+
resp=None,
|
|
40
|
+
exc_type='f', resp_type='a',
|
|
41
|
+
window='none',
|
|
42
|
+
weighting='linear',
|
|
43
|
+
fft_len=None,
|
|
44
|
+
nperseg=None,
|
|
45
|
+
noverlap=None,
|
|
46
|
+
archive_time_data=False,
|
|
47
|
+
frf_type='H1',
|
|
48
|
+
copy=True
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
Adding data:
|
|
52
|
+
~~~~~~~~~~~~
|
|
53
|
+
We can add the excitation and response data at the beginning through ``exc`` and ``resp`` arguments, otherwise, the excitation and response
|
|
54
|
+
data can be added later via ``add_data()`` method:
|
|
55
|
+
|
|
56
|
+
.. code:: python
|
|
57
|
+
|
|
58
|
+
a.add_data(exc, resp)
|
|
59
|
+
|
|
60
|
+
Computing FRF:
|
|
61
|
+
~~~~~~~~~~~~~~
|
|
62
|
+
Preferable way to get the frequency response functions is via ``get_FRF()`` method:
|
|
63
|
+
|
|
64
|
+
.. code:: python
|
|
65
|
+
|
|
66
|
+
frf = a.get_FRF(type="default", form="receptance")
|
|
67
|
+
|
|
68
|
+
We can also directly get the requested FRF via other methods: ``get_H1()``, ``get_H2()``, ``get_Hv()`` and, ``get_ods_frf()``:
|
|
69
|
+
|
|
70
|
+
.. code:: python
|
|
71
|
+
|
|
72
|
+
H1 = a.get_H1()
|
|
73
|
+
H2 = a.get_H2()
|
|
74
|
+
Hv = a.get_Hv()
|
|
75
|
+
ods_frf = a.get_ods_frf()
|
|
76
|
+
|
|
77
|
+
.. _documentation: https://pyfrf.readthedocs.io/en/latest/
|
|
78
|
+
|
|
79
|
+
|pytest|
|
|
80
|
+
|
|
81
|
+
|binder| to test the *Showcase.ipynb*.
|
|
82
|
+
|
|
83
|
+
.. |binder| image:: https://mybinder.org/badge_logo.svg
|
|
84
|
+
:target: https://mybinder.org/v2/gh/ladisk/pyFRF/main
|
|
85
|
+
.. |pytest| image:: https://github.com/ladisk/pyFRF/actions/workflows/python-package.yml/badge.svg
|
|
86
|
+
:target: https://github.com/ladisk/pyFRF/actions
|
|
87
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Minimal makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line.
|
|
5
|
+
SPHINXOPTS =
|
|
6
|
+
SPHINXBUILD = sphinx-build
|
|
7
|
+
SOURCEDIR = source
|
|
8
|
+
BUILDDIR = build
|
|
9
|
+
|
|
10
|
+
# Put it first so that "make" without argument is like "make help".
|
|
11
|
+
help:
|
|
12
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
13
|
+
|
|
14
|
+
.PHONY: help Makefile
|
|
15
|
+
|
|
16
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
17
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
18
|
+
%: Makefile
|
|
19
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@ECHO OFF
|
|
2
|
+
|
|
3
|
+
pushd %~dp0
|
|
4
|
+
|
|
5
|
+
REM Command file for Sphinx documentation
|
|
6
|
+
|
|
7
|
+
if "%SPHINXBUILD%" == "" (
|
|
8
|
+
set SPHINXBUILD=sphinx-build
|
|
9
|
+
)
|
|
10
|
+
set SOURCEDIR=source
|
|
11
|
+
set BUILDDIR=build
|
|
12
|
+
|
|
13
|
+
if "%1" == "" goto help
|
|
14
|
+
|
|
15
|
+
%SPHINXBUILD% >NUL 2>NUL
|
|
16
|
+
if errorlevel 9009 (
|
|
17
|
+
echo.
|
|
18
|
+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
|
19
|
+
echo.installed, then set the SPHINXBUILD environment variable to point
|
|
20
|
+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
|
21
|
+
echo.may add the Sphinx directory to PATH.
|
|
22
|
+
echo.
|
|
23
|
+
echo.If you don't have Sphinx installed, grab it from
|
|
24
|
+
echo.http://sphinx-doc.org/
|
|
25
|
+
exit /b 1
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
|
29
|
+
goto end
|
|
30
|
+
|
|
31
|
+
:help
|
|
32
|
+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
|
33
|
+
|
|
34
|
+
:end
|
|
35
|
+
popd
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Configuration file for the Sphinx documentation builder.
|
|
4
|
+
#
|
|
5
|
+
# This file does only contain a selection of the most common options. For a
|
|
6
|
+
# full list see the documentation:
|
|
7
|
+
# http://www.sphinx-doc.org/en/master/config
|
|
8
|
+
|
|
9
|
+
# -- Path setup --------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
# If extensions (or modules to document with autodoc) are in another directory,
|
|
12
|
+
# add these directories to sys.path here. If the directory is relative to the
|
|
13
|
+
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
14
|
+
#
|
|
15
|
+
import os
|
|
16
|
+
import sys
|
|
17
|
+
sys.path.insert(0, os.path.abspath('../..'))
|
|
18
|
+
sys.setrecursionlimit(1500)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# -- Project information -----------------------------------------------------
|
|
22
|
+
|
|
23
|
+
project = 'sdypy-FRF'
|
|
24
|
+
copyright = '2024, Janko Slavič, et al.'
|
|
25
|
+
author = 'Janko Slavič, et al.'
|
|
26
|
+
|
|
27
|
+
# The short X.Y version
|
|
28
|
+
version = ''
|
|
29
|
+
# The full version, including alpha/beta/rc tags
|
|
30
|
+
release = '2023'
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# -- General configuration ---------------------------------------------------
|
|
34
|
+
|
|
35
|
+
# If your documentation needs a minimal Sphinx version, state it here.
|
|
36
|
+
#
|
|
37
|
+
# needs_sphinx = '1.0'
|
|
38
|
+
|
|
39
|
+
# Add any Sphinx extension module names here, as strings. They can be
|
|
40
|
+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
41
|
+
# ones.
|
|
42
|
+
extensions = [
|
|
43
|
+
'sphinx.ext.autodoc',
|
|
44
|
+
'sphinx.ext.intersphinx',
|
|
45
|
+
'sphinx.ext.ifconfig',
|
|
46
|
+
'sphinx.ext.viewcode',
|
|
47
|
+
'sphinx.ext.githubpages',
|
|
48
|
+
# 'rinoh.frontend.sphinx',
|
|
49
|
+
'sphinx_copybutton',
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
# Add any paths that contain templates here, relative to this directory.
|
|
53
|
+
templates_path = ['_templates']
|
|
54
|
+
|
|
55
|
+
# The suffix(es) of source filenames.
|
|
56
|
+
# You can specify multiple suffix as a list of string:
|
|
57
|
+
#
|
|
58
|
+
# source_suffix = ['.rst', '.md']
|
|
59
|
+
source_suffix = '.rst'
|
|
60
|
+
|
|
61
|
+
# The master toctree document.
|
|
62
|
+
master_doc = 'index'
|
|
63
|
+
|
|
64
|
+
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
65
|
+
# for a list of supported languages.
|
|
66
|
+
#
|
|
67
|
+
# This is also used if you do content translation via gettext catalogs.
|
|
68
|
+
# Usually you set "language" from the command line for these cases.
|
|
69
|
+
language = None
|
|
70
|
+
|
|
71
|
+
# List of patterns, relative to source directory, that match files and
|
|
72
|
+
# directories to ignore when looking for source files.
|
|
73
|
+
# This pattern also affects html_static_path and html_extra_path.
|
|
74
|
+
exclude_patterns = []
|
|
75
|
+
|
|
76
|
+
# The name of the Pygments (syntax highlighting) style to use.
|
|
77
|
+
pygments_style = None
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
# -- Options for HTML output -------------------------------------------------
|
|
81
|
+
|
|
82
|
+
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
83
|
+
# a list of builtin themes.
|
|
84
|
+
#
|
|
85
|
+
html_theme = 'sphinx_rtd_theme'
|
|
86
|
+
|
|
87
|
+
# Theme options are theme-specific and customize the look and feel of a theme
|
|
88
|
+
# further. For a list of options available for each theme, see the
|
|
89
|
+
# documentation.
|
|
90
|
+
#
|
|
91
|
+
# html_theme_options = {}
|
|
92
|
+
|
|
93
|
+
# Add any paths that contain custom static files (such as style sheets) here,
|
|
94
|
+
# relative to this directory. They are copied after the builtin static files,
|
|
95
|
+
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
96
|
+
html_static_path = ['_static']
|
|
97
|
+
|
|
98
|
+
# Custom sidebar templates, must be a dictionary that maps document names
|
|
99
|
+
# to template names.
|
|
100
|
+
#
|
|
101
|
+
# The default sidebars (for documents that don't match any pattern) are
|
|
102
|
+
# defined by theme itself. Builtin themes are using these templates by
|
|
103
|
+
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
|
|
104
|
+
# 'searchbox.html']``.
|
|
105
|
+
#
|
|
106
|
+
# html_sidebars = {}
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
# -- Options for HTMLHelp output ---------------------------------------------
|
|
110
|
+
|
|
111
|
+
# Output file base name for HTML help builder.
|
|
112
|
+
htmlhelp_basename = 'sdypy-FRFdoc'
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
# -- Options for LaTeX output ------------------------------------------------
|
|
116
|
+
|
|
117
|
+
latex_elements = {
|
|
118
|
+
# The paper size ('letterpaper' or 'a4paper').
|
|
119
|
+
|
|
120
|
+
'papersize': 'letterpaper',
|
|
121
|
+
|
|
122
|
+
# The font size ('10pt', '11pt' or '12pt').
|
|
123
|
+
|
|
124
|
+
'pointsize': '10pt',
|
|
125
|
+
|
|
126
|
+
# Additional stuff for the LaTeX preamble.
|
|
127
|
+
|
|
128
|
+
'preamble': '',
|
|
129
|
+
|
|
130
|
+
# Latex figure (float) alignment
|
|
131
|
+
|
|
132
|
+
'figure_align': 'htbp',
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
# Grouping the document tree into LaTeX files. List of tuples
|
|
136
|
+
# (source start file, target name, title,
|
|
137
|
+
# author, documentclass [howto, manual, or own class]).
|
|
138
|
+
latex_documents = [
|
|
139
|
+
(master_doc, 'sdypy-FRF.tex', 'sdypy-FRF Documentation',
|
|
140
|
+
'Janko Slavič, et al.', 'manual'),
|
|
141
|
+
]
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
# -- Options for manual page output ------------------------------------------
|
|
145
|
+
|
|
146
|
+
# One entry per manual page. List of tuples
|
|
147
|
+
# (source start file, name, description, authors, manual section).
|
|
148
|
+
man_pages = [
|
|
149
|
+
(master_doc, 'sdypy-FRF', 'sdypy-FRF Documentation',
|
|
150
|
+
[author], 1)
|
|
151
|
+
]
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
# -- Options for Texinfo output ----------------------------------------------
|
|
155
|
+
|
|
156
|
+
# Grouping the document tree into Texinfo files. List of tuples
|
|
157
|
+
# (source start file, target name, title, author,
|
|
158
|
+
# dir menu entry, description, category)
|
|
159
|
+
texinfo_documents = [
|
|
160
|
+
(master_doc, 'sdypy-FRF', 'sdypy-FRF Documentation',
|
|
161
|
+
author, 'sdypy-FRF', 'One line description of project.',
|
|
162
|
+
'Miscellaneous'),
|
|
163
|
+
]
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
# -- Options for Epub output -------------------------------------------------
|
|
167
|
+
|
|
168
|
+
# Bibliographic Dublin Core info.
|
|
169
|
+
epub_title = project
|
|
170
|
+
|
|
171
|
+
# The unique identifier of the text. This can be a ISBN number
|
|
172
|
+
# or the project homepage.
|
|
173
|
+
#
|
|
174
|
+
# epub_identifier = ''
|
|
175
|
+
|
|
176
|
+
# A unique identification for the text.
|
|
177
|
+
#
|
|
178
|
+
# epub_uid = ''
|
|
179
|
+
|
|
180
|
+
# A list of files that should not be packed into the epub file.
|
|
181
|
+
epub_exclude_files = ['search.html']
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
# -- Extension configuration -------------------------------------------------
|
|
185
|
+
|
|
186
|
+
# -- Options for intersphinx extension ---------------------------------------
|
|
187
|
+
|
|
188
|
+
# Example configuration for intersphinx: refer to the Python standard library.
|
|
189
|
+
intersphinx_mapping = {'https://docs.python.org/': None}
|
|
190
|
+
|
|
191
|
+
# Autodoc options (to show __init__ function in docs)
|
|
192
|
+
autodoc_default_options = {
|
|
193
|
+
'members': None,
|
|
194
|
+
'member-order': 'bysource',
|
|
195
|
+
'special-members': '__init__',
|
|
196
|
+
'undoc-members': True,
|
|
197
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Welcome to ``SDyPy-FRF`` documentation!
|
|
2
|
+
======================================
|
|
3
|
+
|
|
4
|
+
This is the documentation for the ``SDyPy-FRF`` package, part of ``SDyPy`` framework_. Check out the project on GitHub_.
|
|
5
|
+
|
|
6
|
+
To use the package, install the ``sdypy`` package:
|
|
7
|
+
|
|
8
|
+
.. code:: bash
|
|
9
|
+
|
|
10
|
+
pip install sdypy
|
|
11
|
+
|
|
12
|
+
The ``FRF`` module is imported as follows:
|
|
13
|
+
|
|
14
|
+
.. code:: python
|
|
15
|
+
|
|
16
|
+
from sdypy import FRF
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
.. toctree::
|
|
20
|
+
:maxdepth: 2
|
|
21
|
+
:caption: Contents:
|
|
22
|
+
|
|
23
|
+
pyFRF <https://pyfrf.readthedocs.io/en/latest/index.html>
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
.. _GitHub: https://github.com/sdypy/sdypy-FRF
|
|
27
|
+
.. _framework: https://github.com/sdypy
|
|
File without changes
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "sdypy-FRF"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
authors = [{name = "Janko Slavič et al.", email = "janko.slavic@fs.uni-lj.si"}]
|
|
9
|
+
maintainers = [{name = "Janko Slavič et al.", email = "janko.slavic@fs.uni-lj.si"}]
|
|
10
|
+
license = "MIT"
|
|
11
|
+
description = "Frequency response function as used in structural dynamics."
|
|
12
|
+
readme = "README.rst"
|
|
13
|
+
keywords = ["Frequency response function", "MIMO", "SIMO/MISO", "SISO", "structural dynamics"]
|
|
14
|
+
requires-python = ">=3.10"
|
|
15
|
+
dependencies = ["pyFRF >= 1.0"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
'Development Status :: 5 - Production/Stable',
|
|
18
|
+
'Intended Audience :: Developers',
|
|
19
|
+
'Topic :: Scientific/Engineering',
|
|
20
|
+
'Programming Language :: Python :: 3.10',
|
|
21
|
+
"License :: OSI Approved :: MIT License",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[tool.hatch.build.targets.wheel]
|
|
25
|
+
include = ["sdypy"]
|
|
26
|
+
|
|
27
|
+
[project.optional-dependencies]
|
|
28
|
+
dev = [
|
|
29
|
+
"sphinx",
|
|
30
|
+
"twine",
|
|
31
|
+
"wheel",
|
|
32
|
+
"pytest",
|
|
33
|
+
"build",
|
|
34
|
+
"sphinx-rtd-theme",
|
|
35
|
+
"sphinx-copybutton>=0.5.2",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[project.urls]
|
|
39
|
+
homepage = "https://github.com/sdypy/sdypy-FRF"
|
|
40
|
+
documentation = "https://pyfrf.readthedocs.io/en/latest/index.html"
|
|
41
|
+
source = "https://github.com/sdypy/sdypy-FRF"
|
|
File without changes
|