Skip to main content

A library to analyze floor plans with common space syntax metrics.

Project description

Floor Plan Analytics Package

Tested Python versions are 3.9, 3.10, 3.12 and 3.13

Description

This is package that includes some of the most used Space Syntax tools to be applied on floor plans or floor plates. The package is build to utilize Numba to accelerate calculations of the analytics either by CPU multithreading or by utilizing JIT compiled CUDA kernels. The Numba kernels are exclusively written for CUDA, therefore a Nvidia GPU and CUDA installation are needed for running the GPU accelerated version of the code.

The package can also be installed form PyPI:

pip install FloorplanAnalytics

IIf you receive warnings that Numba can not recognize CUDA and falls back and the GPU methods or CUDA is recognized but the kernels terminate without a warning, try to install the correct numba-cuda version according to your install CUDA version. For updating to the correct numba-cuda after the package installation is finished just run this to overwrite the generic numba-cuda installation (here with CUDA 13 as an example)

pip install numba-cuda[cu13]

0.0.3 Features

Features for the new version are:

  • Revisited all GPU methods for speed gains and/or reducing memory consumption
  • Added a new method for calculating shortest distance to an obstacle only if a ray hits it

Details

The inputs and outputs of the outputs fo the methods are all handling simple to manage Numpy arrays. This choice is due to two main considerations aimed to make the backend functions as broadly applicable as possible.

  1. The Input can therefore stem from a (flat and regular) point grid or directly from an image.
  2. The output can be used for further data driven analytics, comparing or storage without any additional data structure

To maintain close-to-realtime performance also at larger array sizes, the exposed methods for the analytics calculations include downscale and up sample functionality while keeping the returned values also scaled accordingly.

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

floorplananalytics-0.0.4.tar.gz (73.7 kB view details)

Uploaded Source

Built Distribution

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

floorplananalytics-0.0.4-py3-none-any.whl (65.7 kB view details)

Uploaded Python 3

File details

Details for the file floorplananalytics-0.0.4.tar.gz.

File metadata

  • Download URL: floorplananalytics-0.0.4.tar.gz
  • Upload date:
  • Size: 73.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for floorplananalytics-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a1cc56698be764333a7d28de23d6c1ad3e03fbff80bd1f0d40a0c35624b2783f
MD5 de8800d3ad808aa2aca951b6d0db6cdd
BLAKE2b-256 3b78d9994bb75fc342eb55fed68a259c49184836f9c058491203e3c5a3b76663

See more details on using hashes here.

File details

Details for the file floorplananalytics-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for floorplananalytics-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f0f04debf78e3c4f864a27e10494c6f02352a6ab11182767de1b81a8941127f9
MD5 5046cdfae0d523e2a2abf21254e63d61
BLAKE2b-256 b33d9898860a07c136961d6e8e93ffb3d407bcacd3f9096372b78e7b4dc0620c

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