Skip to main content

Johannesmann Spatial Tessellation

Python implementation of the Johannesmann Spatial Tessellation method.

This method was developed for the occasion of Sarah Johannesmann’s doctoral thesis defence and is inspired by the way she cuts a cake. For a two-dimensional, bounded plane this is realised by subdividing the plane by a line, which intersects a random point on the plane at a random slope, resulting in two tiles. The process is repeated an arbitrary number of times, with each new line subdividing only the tile the random origin point is located.

Features

  • Implementation of two-dimensions.

  • Single point and grid sampling methods.

Example

Import the package by:

import johannesmann

Create a tessellation object with size 4 by 4 with 30 cuts:

tsl = johannesmann.Tessellation(4, 4, 30)

Sample the tile ID number at the centre of the tessellated plane:

center_id = tsl.tile_id(0, 0)

Sample the whole bounded plane (from -2 to 2 in both dimension) with a grid of 1000 by 1000 samples to get an image of the tessellation. Set squash_ids=True to decrease the range of tile ID numbers by renumbering and removing unused ID numbers:

image = tsl.tile_id_grid(1000, 1000, squash_ids=True)

Metadata

Release files for johannesmann 0.1.0

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

Source distribution (sdist)

Source distribution for johannesmann 0.1.0
File Size Uploaded Provenance Actions
johannesmann-0.1.0.tar.gz 12.0 kB Without provenance Details for johannesmann-0.1.0.tar.gz

Release files / johannesmann-0.1.0.tar.gz

Download URL johannesmann-0.1.0.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
060a455c4809dba86fd95651484c272e8cd780b2516cbb0a53933bba6049ceed
BLAKE2b-256 checksum
How to use checksums
6475612338a4911e4b1907ece96b1bc3e7cd395a2fbc1a42ebf502c8ab790226
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.7

Security for johannesmann 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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