Skip to main content

Tools for co-location analysis: metrics, transforms, and utilities.

Project description

colocationpy

Ruff linting and formatting

Run Pytest with Conda

A package to identify instances of co-location between mobile individuals in a population.

The package provides:

  • Core functionality for detecting when and where co-location occurs.
  • Supporting metrics for analysing the outcomes of co-location (entropy, clustering, interaction networks, modularity, etc.).
  • Transformations and utilities to handle spatial and temporal alignment, distances, and proximity checks.

Installation

pip install colocationpy

Quickstart

Import the library and detect co-locations from mobility data, then use the built-in tools to explore the results.

Example outline:

  • Provide trajectories with individual IDs, positions, and timestamps.
  • Use co-location utilities to compute who was in the same place at the same time.
  • Analyse the resulting interaction network or entropy measures.

Modules

  • colocationpy (top-level) Main API: co-location detection and related helpers.

  • colocationpy.metrics Functions to analyse co-location results: entropies, clustering coefficient, interaction networks, mutual information, modularity.

  • colocationpy.transformations Functions to align coordinate systems and map simulation timesteps to real datetimes. Used to make heterogeneous mobility data comparable.

  • colocationpy.utils Distance measures, proximity functions, barrier handling, and other helpers used internally and available for advanced users.

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

colocationpy-0.1.8.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

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

colocationpy-0.1.8-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file colocationpy-0.1.8.tar.gz.

File metadata

  • Download URL: colocationpy-0.1.8.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for colocationpy-0.1.8.tar.gz
Algorithm Hash digest
SHA256 da40e7b4163f65d61aec12e093ceb1ee913202dd5e206faeb9a4d5eea5644760
MD5 17e7ec0b25d0b5afd6e06dfda06110af
BLAKE2b-256 f093749a4f9d4fe62492fb62775a05ad35e8352f16d874482874b5c1409b68e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for colocationpy-0.1.8.tar.gz:

Publisher: publish.yml on ksuchak1990/colocationpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file colocationpy-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: colocationpy-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for colocationpy-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a6744ccd9d0a6c50d39bd332c93c96f000d53b092afbb1233087c0aa923c8d96
MD5 0f63853d3f5fb18cccb8cd9358af19a4
BLAKE2b-256 13c2f5a6521c815a53fa3753f2295550b6bfb8ea7a50b7234c240ed6af3e8056

See more details on using hashes here.

Provenance

The following attestation bundles were made for colocationpy-0.1.8-py3-none-any.whl:

Publisher: publish.yml on ksuchak1990/colocationpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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