Skip to main content

No project description provided

Project description

heatmapcalc

heatmapcalc is a minimalistic python package that provides a fast function to add circles to a numpy array, based on a list of bounding boxes.

It is written in Rust for performance.

Installation

Install with pip:

pip install heatmapcalc

With Rust installed, you can build the package from source:

pip install .

Usage

Here is a simple example:

from heatmapcalc import heatmapcalc

# Example boxes: list of tuples (x1, y1, x2, y2)
boxes = [
    (10, 300, 100, 600),
    (150, 300, 300, 600),
    (250, 215, 450, 425),
    (430, 215, 550, 425),
]

# Shape of the heatmap
shape = (600, 800)

# Calculate the heatmap, an np.ndarray of shape (600, 800)
heatmap = heatmapcalc(boxes, shape)

This can now be used to visualize it and overlay it on an image. This is shown in the example script.

Development

  • Deploy: To deploy on PyPi, trigger the CI workflow on GitHub with the latest commit tag. The workflow builds and uploads the wheels for Linux and MacOS.
  • Test: Test with pytest.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

heatmapcalc-0.1.5.tar.gz (15.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (227.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl (266.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ s390x

heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (265.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ppc64le

heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (239.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARMv7l

heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (236.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

heatmapcalc-0.1.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl (239.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.5+ i686

heatmapcalc-0.1.5-cp312-cp312-macosx_11_0_arm64.whl (197.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

heatmapcalc-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl (201.8 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (227.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl (266.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ s390x

heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (265.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ppc64le

heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (240.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARMv7l

heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (237.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

heatmapcalc-0.1.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl (240.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.5+ i686

heatmapcalc-0.1.5-cp311-cp311-macosx_11_0_arm64.whl (197.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

heatmapcalc-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl (202.5 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file heatmapcalc-0.1.5.tar.gz.

File metadata

  • Download URL: heatmapcalc-0.1.5.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.4

File hashes

Hashes for heatmapcalc-0.1.5.tar.gz
Algorithm Hash digest
SHA256 e8a76fb7bcad39185b9a2c601e5630702ab99fe7d2bca9e5b2a84896da254027
MD5 d2afe10904d6d48f664524cbae432228
BLAKE2b-256 7033065bd1a3a8314606cac83602c3a6ec1ca1a6825785d14cf187931b11fb97

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6dc7be6604f248fb269767033844eb192ea355e24950acf22da1286b4d07bdd8
MD5 425d09766f578093ff38104c99c51a68
BLAKE2b-256 9cb57b99e0fed9e9de7767d31eec807c92b983558bd949b27b651c88cabcdc17

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 fd59ba5735c752d284d8e8de88f5188b6463286999bbaca110f08591731096d2
MD5 a94cf8fcdbf2dbc4a535b5d849b70b10
BLAKE2b-256 d84fef6626fd91d91d97644205012d5171e5a9ac0717fb8245fafc64060fe819

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 b8a00c08002a4e94d9b7f47c3ad50a57fa0e1208af1b6fa0c50516d1f20aa9e8
MD5 ca82628ba425706af4769355ebe62605
BLAKE2b-256 64af649dd52deace70c1f4e6598b84f0d749c1a7a537a7e3c71090ac22ef937f

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 85bc148ad5b32e6d09b57c16041b6d05d1ebe56c689a9a4ca2fe06e758c7de7e
MD5 1b920291d679e4dd60bee39169e9cb1c
BLAKE2b-256 9ca72accbfcc35a47d7c67118630ebedda43d1053d7b70a799aa13a96e96d955

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f96bf47f7af8261b003a4292cc6960de971518a511bedbc6a9c2492c5472bd46
MD5 5902b13a85fc5ce02445cac7c511c045
BLAKE2b-256 187f47174687a5162ceaf1b9f080d8cb77f0b87d590427c7621647147a27293b

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 8069cacd613ccbcde776d24dea28c6a1259851a185683d11aa205b005b4b211d
MD5 b5e1ef1c2b5ed7c878a0da8cf624035a
BLAKE2b-256 7e56625c3d5249ee1ec9a84129083b31c692cbff0d3cb1869fe6e13e345ce917

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97f6b141a3dc0948e208602795738e48496b25e48a3f8b2b887e2729bdc3036e
MD5 9192cb3ad0cb3fce296de52ecfc3116a
BLAKE2b-256 38699ee038c80fadd0db3b8d05f1d82c3c0812880dc6a5e91a824920d8129ff8

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ff74131c7dfcdb5f32d6aeea33632a0f7416eb6d15ab9a77232b70d25b093e32
MD5 5f8f144a2c95636076dfe99ac5cb4b30
BLAKE2b-256 85c6d0931c47149e000c65699ddb6a3af0783f55153048d7a2c6952988f32c42

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 17c1f274110bd18889455f74dc5088a26e2f18ba2be9078e0a38e7c3c3a8fb76
MD5 8d2cc96c7e76c03ef89ebcff0214b852
BLAKE2b-256 86ec519f0f403a39a75a46232ce85cb9e598b5033af28b9ea3802187932dfa98

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 892a279977ebb06aaf589c3c33bc35bc63c41c5f43ec41db100ad739b7eca296
MD5 ace3546906f7425f545758b42de64efe
BLAKE2b-256 c5b3a230ef6073bdcd79ef9ef5f927de488b0c91198aa70563ff335d346079fd

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 159558b74de9f93b74048d85d103a968c25463a99272dcdc92199face7158594
MD5 c3723905f5884324402291da69ed5112
BLAKE2b-256 7196b9d39b7a3ddbb2ae8d78bded3a63560c843d6fa60fb285c3bf5d4e936f27

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 3b6d0ceeba86fa96692d79a6691fc6a8bf02c20d98abe7c63ef9be1bb4d9716f
MD5 10f1a53803e7a5ddab522cfbab8eb09f
BLAKE2b-256 9f99e51df143535194ff71a36039ed5b27ad1a6c0295659bc8ea516ed7e1ef05

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 454c726540d71418dccafe934d9a7d23bd790d95b8ee40ba5960966916fd69ff
MD5 be73eb59d92bf21e3b22d25b87fc8ab8
BLAKE2b-256 99d1f1d4bb3b4c46a301d401c043929df312f85b7be431ec4f7b5451d4358902

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 3a5f944bcb96f4b49bca48acef96788db702e2134247ba279dde647373535d09
MD5 a1d6dafaa65cb0eed913b00fed43bf6e
BLAKE2b-256 e98d44751c5176f9f3279567c03fa288551f686f7f75f3f07b48c3cb7da8c25a

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e01faa608924ddeb725d3333993955e7faf62f2025b24fa2534ad838d1e8205
MD5 c10729f18c06f85239698d3b17bf0f60
BLAKE2b-256 f8aff5ab59f40841080ff15bb7c30ee72d9744dae844252edc2a18d1378773a7

See more details on using hashes here.

File details

Details for the file heatmapcalc-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for heatmapcalc-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d926f08314fedc1b6c695ad6ccf6e8198c2d6ae40fc3cea32253acf14934a3e7
MD5 6dbf53227de055874f55f97fce125f37
BLAKE2b-256 4ef139e328c18b5d93c7e8337f33c1ba417134161d82bf453dcc7da86b2cb36a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page