Skip to main content
Files added late

4 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.

PyPI PyPI Python Rust

Fast Konno-Ohmachi Spectral Smoothing

Implemented in Rust with a Python interface. The performance gain measured against the widely used Python/numpy implementation that comes with obspy approaches approximately a factor of 2.5 for large and 10 for small vectors (see Benchmarks).

Installation

Installation from pypi:

pip install konnoohmachi

Installation from source:

pip install .

Usage

This smoothes some random numbers:

Python

import konnoohmachi

bandwidth = 40

# using fake random data
frequencies = np.arange(1000)
amplitudes = np.random.rand(1000)

smoothed_amplitudes = konnoohmachi.smooth(frequencies, amplitudes, bandwidth)

Rust

use konnoohmachi;

let frequencies = Array1::<f64>::zeros(10);
let amplitudes = Array1::<f64>::ones(10);
let bandwidth = 40.0;
konnoohmachi_smooth(
    frequencies.view().into_dyn(),
    amplitudes.view().into_dyn(),
    bandwidth,
);

Benchmarks

Measuring the execution time based of increasing sized spectra yields:

❯ python3 benchmark.py
nsamples |    Rust      |    Python     | Performance Gain
----------------------------------------------------------
256      |    0.00017   |    0.00192    |   11.30802
512      |    0.00054   |    0.00431    |    7.97596
1024     |    0.00198   |    0.01117    |    5.63623
2048     |    0.00775   |    0.03143    |    4.05371
4096     |    0.03067   |    0.10024    |    3.26844
8192     |    0.12212   |    0.35058    |    2.87080
16384    |    0.49391   |    1.29653    |    2.62506
32768    |    1.98499   |    5.05335    |    2.54578

Release files for konnoohmachi 1.0.0

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

Files added late

4 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Built distributions (wheels)

Table of built distributions (wheels) for konnoohmachi 1.0.0
File
konnoohmachi-1.0.0-cp310-none-win_amd64.whl CPython 3.10 none Windows x86-64 Details
konnoohmachi-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
konnoohmachi-1.0.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64, macOS 10.9+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64 Details
konnoohmachi-1.0.0-cp310-cp310-macosx_10_7_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.7+ x86-64 Details
konnoohmachi-1.0.0-cp39-none-win_amd64.whl CPython 3.9 none Windows x86-64 Details
konnoohmachi-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
konnoohmachi-1.0.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64, macOS 10.9+ x86-64, macOS 10.9+ universal2 (ARM64, x86-64) Details
konnoohmachi-1.0.0-cp39-cp39-macosx_10_7_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.7+ x86-64 Details
konnoohmachi-1.0.0-cp38-none-win_amd64.whl CPython 3.8 none Windows x86-64 Details
konnoohmachi-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
konnoohmachi-1.0.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64, macOS 11.0+ ARM64, macOS 10.9+ universal2 (ARM64, x86-64) Details
konnoohmachi-1.0.0-cp38-cp38-macosx_10_7_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.7+ x86-64 Details
konnoohmachi-1.0.0-cp37-none-win_amd64.whl CPython 3.7 none Windows x86-64 Details
konnoohmachi-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details
konnoohmachi-1.0.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64, macOS 10.9+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64 Details
konnoohmachi-1.0.0-cp37-cp37m-macosx_10_7_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64 Details

Total release size: 3.9 MB

Release files / konnoohmachi-1.0.0-cp310-none-win_amd64.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL konnoohmachi-1.0.0-cp310-none-win_amd64.whl
Size 148.8 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
1262093446adfa38cb0894133a2e63662cb841c30b9e4bb462917fa1247c0d85
BLAKE2b-256 checksum
How to use checksums
b8cd8a28f4971bfa9d6d0ac8bfa0948f7836e1f6ab7bab94e2ba1d19f3f8fc6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / konnoohmachi-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL konnoohmachi-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 222.9 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
fa0f8d2736cee227580692ddb22110f04494a1b52a8b8d163c71e2f9d618257f
BLAKE2b-256 checksum
How to use checksums
b67626f3cd3741c940c452242314e98180e5921648dca754b6260bc199914c6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / konnoohmachi-1.0.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl

Download URL konnoohmachi-1.0.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Size 393.0 kB
Tags CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
75029508cabfdbee8c57c2f01319f26d1d6052370577b723921fef9b07455e3b
BLAKE2b-256 checksum
How to use checksums
947f645b3f4c0a7aa437a7e614161398888a29550ac4c9c0b6a81253e5612733
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / konnoohmachi-1.0.0-cp310-cp310-macosx_10_7_x86_64.whl

Download URL konnoohmachi-1.0.0-cp310-cp310-macosx_10_7_x86_64.whl
Size 202.4 kB
Tags CPython 3.10 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
32fc183f16abf9964fac54e8b6d8aa754728d7badf6201d2acb00176b459f9f6
BLAKE2b-256 checksum
How to use checksums
ef819bb6a920cf4186ca8154a778bf289c9548c9414bdd7d3fccb119d0d667ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / konnoohmachi-1.0.0-cp39-none-win_amd64.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL konnoohmachi-1.0.0-cp39-none-win_amd64.whl
Size 148.8 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
d441d22cdebc51bdf285cc66bdf8143aabb2a6e2649dc40de220cf621fa404e9
BLAKE2b-256 checksum
How to use checksums
f1590d3a1355000437321fa2910bfe3327694d2939b243b2f6dba7f7f78199ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / konnoohmachi-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL konnoohmachi-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 222.5 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
af5b22c196c904e83ba47d2b4c6c2edb78dea7e9ab3b537567f2d5c0454b5116
BLAKE2b-256 checksum
How to use checksums
e79c2941c05df516044f96093bc5e0fbb5d283a590656641e717983a59b00eea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / konnoohmachi-1.0.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl

Download URL konnoohmachi-1.0.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Size 393.0 kB
Tags CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
eb81161f6f6656e20453cacd88e9bd937558ef318bd23d247f82e61a9c2f3983
BLAKE2b-256 checksum
How to use checksums
9eb586a990410bf8452c5b0b3859c43faf75ae5f830cde632cc7b1e0673faccf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / konnoohmachi-1.0.0-cp39-cp39-macosx_10_7_x86_64.whl

Download URL konnoohmachi-1.0.0-cp39-cp39-macosx_10_7_x86_64.whl
Size 202.0 kB
Tags CPython 3.9 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
40fce8cd0330f22e1852d9e683e0bda178f19f5b02bc6d80e42fa2db6607e409
BLAKE2b-256 checksum
How to use checksums
7af85386180fcd74035829b824a438e83fc8cb7447a753410696132a653c4987
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / konnoohmachi-1.0.0-cp38-none-win_amd64.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL konnoohmachi-1.0.0-cp38-none-win_amd64.whl
Size 148.8 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
83f54027dceff5ec90e2eb17d0faf1d7cf4c01504528e25a32b5108825b4f048
BLAKE2b-256 checksum
How to use checksums
deddc136e897960f9330e8d87be3f68d563fd752b9763d125f9df880daeaacd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / konnoohmachi-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL konnoohmachi-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 222.9 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
f9da7863246a5442b81f01f746cfa22f51e062105fc2e8eca404a0c6a69edf98
BLAKE2b-256 checksum
How to use checksums
25f9a08a8bdee404543219dcf84eb1f275c8cfb2775120d6b90373320291f43e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release files / konnoohmachi-1.0.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl

Download URL konnoohmachi-1.0.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Size 393.1 kB
Tags CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
62ff387d98821bba16e4abe5c0fa2b6012d2cfaad4cc4aa674608c01f6b97d63
BLAKE2b-256 checksum
How to use checksums
e6cccda5d7ab6b273a28fca0cc8dc4b72167e4b3386944f42c1899fbcdb38b44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.12

Release files / konnoohmachi-1.0.0-cp38-cp38-macosx_10_7_x86_64.whl

Download URL konnoohmachi-1.0.0-cp38-cp38-macosx_10_7_x86_64.whl
Size 202.3 kB
Tags CPython 3.8 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
94167833622a307af950c51d6ca9db59c7060ef715a4a0e9eb453d44192570ae
BLAKE2b-256 checksum
How to use checksums
effdaf7f58fc25a25c5a0d95c49caf4e6669835a85e413480c34b6886f175198
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.12

Release files / konnoohmachi-1.0.0-cp37-none-win_amd64.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL konnoohmachi-1.0.0-cp37-none-win_amd64.whl
Size 148.5 kB
Tags CPython 3.7 Windows x86-64
SHA-256 checksum
How to use checksums
a91afff103df0c3932dc1fb9e7ef161e6c4e7aff5820f2696144f87826ea3d7f
BLAKE2b-256 checksum
How to use checksums
2203c8a200f76ee0f32aaeff7537a1ea82019681a76a3f1a49ece3b07651450a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.9

Release files / konnoohmachi-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL konnoohmachi-1.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 222.9 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3dda3fff2039f833adcf0c5dfec02932c07fbe2199e833b138dbef1c75cde5d5
BLAKE2b-256 checksum
How to use checksums
67fb13ef9c9100d146aa9a71637df21b41db4eab76ef5e049e6729860548ed5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.13

Release files / konnoohmachi-1.0.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl

Download URL konnoohmachi-1.0.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Size 393.0 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c42064235431d05d77493ca16382e1952b5987ee7afe48a3b9c2e592bdf86366
BLAKE2b-256 checksum
How to use checksums
fc845ce57e93df6ebac9bc53a4488a53a7702141e0e7e5f19bfdda4de6caab46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.13

Release files / konnoohmachi-1.0.0-cp37-cp37m-macosx_10_7_x86_64.whl

Download URL konnoohmachi-1.0.0-cp37-cp37m-macosx_10_7_x86_64.whl
Size 202.3 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
25499fbe1e59bda7eb6d9428d7353ca2290f66506b71e079624a8c60f610e14a
BLAKE2b-256 checksum
How to use checksums
5c5738a20a8d0b69cdad1e77157f2ce5fd4fcfbb60e15dba834d3333840a5aaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.13

Release history Release notifications | RSS feed

This release

1.0.0 This release

16 release files

0.2.0

18 release files

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