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.4.tar.gz (14.7 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.4-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.4-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.4-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.4-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.4-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.4-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.4-cp312-cp312-macosx_11_0_arm64.whl (197.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.12+ x86-64

heatmapcalc-0.1.4-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.4-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.4-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.4-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.4-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.4-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.4-cp311-cp311-macosx_11_0_arm64.whl (197.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

heatmapcalc-0.1.4-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.4.tar.gz.

File metadata

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

File hashes

Hashes for heatmapcalc-0.1.4.tar.gz
Algorithm Hash digest
SHA256 1a26a461d5954591f1c9d78a4c699097da6068d6a642f70f24bf8aa8d2a84333
MD5 7767ce003439077de374fda82b879fe0
BLAKE2b-256 dd528dfe9a82ac5fb0b776e459a6bea4940f667ef399cddf2a3a4ca7e1e173e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f377c6f7711d34dc844439db9e20f5eb9f5df82f269cbf490e02ff2cd1a72dc0
MD5 2146ada4e7dee9e78eb521187a854a72
BLAKE2b-256 39afcb6451ac2d93ecfa1053fd810cd391f0c9bc1fd58dcc743a54ca9e1ba3b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 c54c265e26512810364cc56a4d169424eb4975b9a7123d6fa174a423b75a00c7
MD5 60af8838f0d10be5647ca0629847b0b3
BLAKE2b-256 f06fdad95cba215363655e97de16d9e4cc2adebee7c0fcf65e7bd74107fca82c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 6beaee63f3ac60a9fbf89ec166b95f1ff18f52087f21c7d7d8734a0e28b2a5fd
MD5 dee9db6780dfdcd30b906590d4339292
BLAKE2b-256 ada07983b685bfffa154b057da06ab20c89ff7534ff5f2671b5ac83e8ee45ea4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 847676f6cd87a83ab59ba24c2b6c4e41d86f421f7e60d55b550b690ceb4de8c5
MD5 29aa1bf1a27c8304c20cf97373953fe8
BLAKE2b-256 74e5be9ce1643edfa0446e629aa1b8c488e6f6acf0e7af5212c5e459721c3a39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 13c0f30f6aadde8f8bd065c9762bec7a385c6758c71a491bfb59b5128f356890
MD5 d99399e71f53ab2ee8bb21caccbfadc4
BLAKE2b-256 3d96531a1063652be1bc3e5927cdb4ab43d85fb417b8274d1ffa68e1aae62660

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 731a06abb1c4d4068d5e406eeea33bb9c65b3a795ae30358f2a1e94ae03995a1
MD5 962005056ce0fdc5041d6acbde5f7dcd
BLAKE2b-256 8f80c7c66c3bbe57801e57ccf3ae9a678b70e6bd55f91f5580614a9649a42c50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae74850cc61aa7271d060f906d8c6070fcb8c0cc36ad5292a041ad32e9ee3675
MD5 b80ce55e441676689fee01c45dddc0ff
BLAKE2b-256 aa2f9dd31d998fd95075de7028d06ebd9fea24d64a9533040dbddc96fdf2070e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1a7fe8f5e7ec52f0367555b968c66feabe2633992be811a41a0f2dc5b44d7631
MD5 67660a581d33c4a53dbfdec20897315f
BLAKE2b-256 7aa1beff452b32b88d4f04d56e67f56f8c8319af2350db2584f69991e50fac9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3c12f5d9b443da0e6c3946dbc1a56f4286aea66b52538052b35e9a42225c5cbb
MD5 cd0ddc9cff795a970331a81565e4c641
BLAKE2b-256 8867e827908fca655b5f26b58af5924f04e59c6faf5af73b05d8e63b5eb47c79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 9fe7c3f99cbe3eff464fc31b0486e75062e144d8a1cab43b5130aa77944c8242
MD5 836d189ada82f4169f5dae82a49969d7
BLAKE2b-256 a90e9137bacd6673d29ac44863147c010398c450df0a872d0bfd3706eb1c9a9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 d260f8680af6d1f92afb65f94b6b3a900050026e2f98d22a50e6c49c66b39fc9
MD5 fde8794040668c640309ff74e3c081e7
BLAKE2b-256 28a0b3a8808553fa7622c124eaf431b4323058d54ccffdfad56c6831ce394333

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 4845e94d8a2e772a88b1a051fb3d900ffea15fc4cd62c663fa2481f45cd8287f
MD5 51b822e4ecb363ed4608bc839004d8c2
BLAKE2b-256 28a8e3e8b479f1ed10e380db2e511892a1375e8be46c87eaa3aa068e4cdae0a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cf50e17b8ebe6dd3a0bdc468533a2b72ca5c0bd64ef910eac675b9eb88ba29a9
MD5 76004405cff4f1269cee111a19b9b3de
BLAKE2b-256 63dd657594b34315948fa90525b4895de67d07b3de747a2805eaa86e5d436ff6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 b16b244e4610a97aab4dd0d3f135733dabd1a052e112e609fdf63486587f9f60
MD5 009daec16f4099d843e0db19cdcd5d92
BLAKE2b-256 09b1c1d01f4f5e80dbd5f26ff04b0554f4a95d1b91000e49e688554add440078

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d46a6516e8149e8f134f0081518926974454d609f216d5dbeeed165ac62977b
MD5 3f4cbecd190065960391961c2568addc
BLAKE2b-256 01189db41fe4099eb04292c94cdca23bbc151ab1c9b016a2f11efdb3d3ada5cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for heatmapcalc-0.1.4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 91435c239513f7fb33bbcc526e5199e9f662ec358fb7c5a74556228fd65f7ef1
MD5 8f23bf989fb98cc017d0e295d912ba1f
BLAKE2b-256 b445e96a550c20764893ae690705a2cb416b7739595c6a4e8c2b40d1a5f557af

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