Skip to main content

pyFRF

Frequency response function as used in structural dynamics.

pyFRF is a port of sdypy-FRF, which is part of the SDyPy project. The code is maintained in sdypy-FRF; this package makes the same code available under the pyFRF name, so that existing code keeps working.

Please report issues and open pull requests at sdypy-FRF.

Installing pyFRF also installs sdypy-FRF. These two imports give the same code:

import pyFRF
from sdypy import FRF as pyFRF

For new code, use sdypy-FRF directly:

pip install sdypy-FRF
from sdypy import FRF

For more information check out the showcase examples and see documentation.

Basic pyFRF usage:

Make an instance of FRF class:

a = pyFRF.FRF(
    sampling_freq,
    exc=None,
    resp=None,
    exc_type='f', resp_type='a',
    window='none',
    weighting='linear',
    fft_len=None,
    nperseg=None,
    noverlap=None,
    archive_time_data=False,
    frf_estimator='H1',
    copy=True
)

Adding data:

We can add the excitation and response data at the beginning through exc and resp arguments, otherwise, the excitation and response data can be added later via add_data() method:

a.add_data(exc, resp)

Computing FRF:

Preferable way to get the frequency response functions is via get_FRF() method:

frf = a.get_FRF(frf_estimator="default", frf_form="receptance")

We can also directly get the requested FRF via other methods: get_H1(), get_H2(), get_Hv() and, get_ods_frf():

H1 = a.get_H1()
H2 = a.get_H2()
Hv = a.get_Hv()
ods_frf = a.get_ods_frf()

Changes in 1.5.1:

Segment averaging (nperseg) now also works on 32-bit platforms, for example in the browser with Pyodide. Results are unchanged.

Changes in 1.5.0:

The FRF constructor keyword frf_estimator and the get_FRF() keywords frf_estimator/frf_form are available since 1.5.0. The old names (frf_type on the constructor, and type/form on get_FRF()) still work but raise a DeprecationWarning.

pytest

binder to test the Showcase.ipynb.

Metadata

Release files for pyFRF 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyFRF 1.6.0
File Size Uploaded Provenance Actions
pyfrf-1.6.0.tar.gz 4.2 kB With provenance Details for pyfrf-1.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyFRF 1.6.0
File Interpreter ABI Platform Actions
pyfrf-1.6.0-py3-none-any.whl Python 3 none any Details for pyfrf-1.6.0-py3-none-any.whl

Total release size: 8.1 kB

Release files / pyfrf-1.6.0.tar.gz

Download URL pyfrf-1.6.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
60b397bc048a545a1dddb078a22d091b31284b4c62c8575649ebde6478c33072
BLAKE2b-256 checksum
How to use checksums
9dfff7560895696f04573c70a6c599bd2adf88a6332a91a629174a43b86abf04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / pyfrf-1.6.0-py3-none-any.whl

Download URL pyfrf-1.6.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0445c9fdbee4680f80f87f43ce569791e096e712be564935dde79da3f47b78ec
BLAKE2b-256 checksum
How to use checksums
db082d258626d60cab1ba6bf4afffa4a71d16e3e6c3d8e04055b39e625e9bce3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for pyFRF 1.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyfrf-1.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page