pydvma
A Python package for dynamics and vibration measurements and analysis.
About
pydvma is a modular library for data measurement and analysis in the context of dynamics and vibration, developed at the University of Cambridge Department of Engineering. It's designed for use in student laboratory experiments and research projects.
Key features:
- Data acquisition via soundcards or National Instruments DAQs
- Pre-trigger recording and PC-generated output stimulus for impulse/transfer-function measurements
- FFT, transfer functions, coherence, and spectrograms (STFT and CWT)
- Modal analysis tools (mode-fitting, damping estimation)
- A browser-based web logger with a live oscilloscope, analysis and modal-fitting views
- Export to
.dvma, MATLAB and CSV; theme-invariant figure export (PNG/PDF)
The web logger — the recommended interface
The interactive interface is now the web logger, which runs in three modes over one shared analysis engine:
| Mode | Open it | Install |
|---|---|---|
| Pages app — analysis of saved files + soundcard capture | torebutlin.github.io/pydvma/app/ | none |
| Local bridge — the same app driving real hardware (soundcard or NI-DAQ) | pydvma-serve --open |
pip install "pydvma[serve,soundcard]" |
JupyterLite — import pydvma in a browser notebook |
torebutlin.github.io/pydvma/lite/ | none |
The earlier desktop Qt logger GUI has been removed now that the web logger has full parity (its last version is the
qt-finalgit tag).
Quick Start
Analyse or measure in the browser with no install — open the
Pages app and drag in a
.dvma, .npy or .mat file, or capture from a soundcard.
To drive real hardware (soundcard or NI-DAQ) from the same app on your own machine:
pip install "pydvma[serve,soundcard]" # add [ni] for National Instruments
pydvma-serve --open # serves the app + bridge, opens a browser
[serve] on its own installs only the bridge itself — name the
backends you need alongside it (soundcard, ni), or use
pydvma[full] for both.
To script analysis and acquisition in Python:
import pydvma as dvma
dataset = dvma.load_data('measurement.dvma') # or record with log_data
freq = dvma.calculate_fft(dataset.time_data_list[0])
Plain pip install pydvma installs the analysis-only core (data
structures, FFT/TF/modal analysis, file I/O) with no hardware
dependencies — it runs anywhere, including in-browser under pyodide.
Native data format is .dvma (safe, pickle-free); .npy files saved
by older versions still load.
Documentation
Full documentation: torebutlin.github.io/pydvma
- Installation Guide - Detailed setup instructions
- Quick Start - Get up and running quickly
- User Guide - Comprehensive usage guides
- API Reference - Detailed API documentation
Contributing
Contributions are welcomed:
- Report bugs via GitHub Issues
- Submit pull requests for bug fixes and improvements
- Contact us for significant changes or new features
See the Contributing Guide for details.
Support & citation
pydvma is free and open for everyone — no features are gated. If it
supports your teaching or research, the most valuable thing you can do is
cite it. This repository includes a
CITATION.cff file, so GitHub's "Cite this repository"
button and most reference managers can import the citation directly.
If your institution would like to support continued development, or you would simply like to tell us how you use pydvma, get in touch: tb267@cam.ac.uk. See the Support & citation page for details (a DOI will follow via Zenodo once a release is archived).
License
BSD 3-Clause License - see LICENSE for details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydvma-2.4.4.tar.gz.
File metadata
- Download URL: pydvma-2.4.4.tar.gz
- Upload date:
- Size: 814.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c288ee5fedafe59710d190fee429cb57ae60b92783c3d06de6af8b5e705fda83
|
|
| MD5 |
74880ca9f856a959fef487350d654029
|
|
| BLAKE2b-256 |
940ac59376b8f672679a85d654d639f0b611ddd668ff5144c7a19c5cde545b0b
|
File details
Details for the file pydvma-2.4.4-py3-none-any.whl.
File metadata
- Download URL: pydvma-2.4.4-py3-none-any.whl
- Upload date:
- Size: 7.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8e3ed218870ca3b22e928c89b39014d99c8e02fbd6e438496879d79733d27e4
|
|
| MD5 |
b0de0f02db8d6bb4dbf9aaa1bfc631f4
|
|
| BLAKE2b-256 |
8162129c07e7b1defe7fe514236901e54e9bba9407000572cc6d08e12f5544b7
|