Skip to content

Commit

Permalink
restructured project folder and added build config
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCerina committed Jun 23, 2022
1 parent 2ca43e4 commit 5a578ba
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
__pycache__
*.egg-info
dist
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Algorithms 2012, 5, 588-603.
- Numpy
- Scipy for tests

### Installation
The library can be easily installed with setuptools support using `pip install .`

### Tests
The tests folder contains an ECG signal with annotated peaks in matlab format.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test.py → ampdlib/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
N = 30000
input_data = real_data['ecg_signal'][0:N,0].flatten()
tStart = perf_counter()
ampd_peaks = ampdLib.ampd_v2(input_data)
ampd_peaks = ampdLib.ampd_fast(input_data)
tEnd = perf_counter()
print("Samples: {}".format(N))
print("Peaks found in: {} seconds".format(tEnd-tStart))
Expand Down
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[build-system]
requires = [
"setuptools"
]
build-backend = "setuptools.build_meta"

[project]
name = "ampdLib"
version = "1.1.1"
description = "Implementation of AMPD algorithm for peak detection in quasi-periodic signals"
dependencies = [
"numpy"
]

[metadata]
author = "LucaCerina"
author_email = "[email protected]"
license = "Apache-2.0"

0 comments on commit 5a578ba

Please sign in to comment.