Skip to content

Commit

Permalink
v0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
apage224 committed Feb 5, 2024
1 parent e4a236a commit 03c9421
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion physiokit/ecg/synthetic/rhythm_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def simulate_brisk(
t_multiplier: float = 1.0,
noise_multiplier: float = 1.0,
voltage_factor: float = 300,
parameters: EcgPresetParameters|None = None,
parameters: EcgPresetParameters | None = None,
) -> tuple[npt.NDArray, npt.NDArray, npt.NDArray, npt.NDArray, EcgPresetParameters]:
"""Generate synthetic ECG signals via WaSP-ECG
Expand Down
2 changes: 1 addition & 1 deletion physiokit/signal/noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def add_emg_noise(data: npt.NDArray, scale: float = 1e-5, sample_rate: float = 1
npt.NDArray: Signal with EMG noise
"""
noise = np.tile(
np.sin(np.linspace(-0.5 * np.pi, 1.5 * np.pi, int(sample_rate)) * 10*sample_rate),
np.sin(np.linspace(-0.5 * np.pi, 1.5 * np.pi, int(sample_rate)) * 10 * sample_rate),
int(np.ceil(data.size // sample_rate)),
)
return data + scale * noise[: data.size]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "physiokit"
version = "0.8.0"
version = "0.8.1"
description = "PhysioKit, process raw ambulatory bio-signals."
license = "BSD-3-Clause"
authors = ["Adam Page <adam.page@ambiq.com>"]
Expand Down

0 comments on commit 03c9421

Please sign in to comment.