Skip to main content

Network Validation using the Spatial Coherence Framework.

Project description

Network Spatial Coherence

Python library to validate the spatial coherence of a network. It offers tools to analyze network properties, check how "Euclidean" the network is (spatial coherence), and to reconstruct the network. Networks can be both simulated (e.g. a KNN network) or imported.

Features

  • Analyze the spatial coherence of a network
  • Reconstruction images from purely network information
  • Efficient graph loading and processing (using sparse matrices or getting a graph sample)

Install

Python 3.11 is reccomended, although older versions should work.

pip install git+https://github.com/DavidFernandezBonet/Spatial_Constant_Analysis.git

If you require authentication you can use a PAT (a github token) instead. Go to Developer settings > Personal access tokens > Generate new token and then save the token because it will not be displayed again. You should input it in this line of code

pip install git+https://<token>:x-oauth-basic@github.com/DavidFernandezBonet/Spatial_Constant_Analysis.git

Usage

For a detailed tutorial, see the Jupyter Notebook Tutorial in this repository.

  1. Access documentation for detailed API usage:
from network_spatial_coherence.docs_util import access_docs
access_docs()
  1. Minimum working example
from network_spatial_coherence import nsc_pipeline
from network_spatial_coherence import structure_and_args
structure_and_args.create_project_structure()
graph, args = nsc_pipeline.load_and_initialize_graph()
nsc_pipeline.run_pipeline(graph, args)

Contact

[dfb@kth.se]

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

network_spatial_coherence-0.1.193.tar.gz (4.7 MB view details)

Uploaded Source

Built Distribution

File details

Details for the file network_spatial_coherence-0.1.193.tar.gz.

File metadata

File hashes

Hashes for network_spatial_coherence-0.1.193.tar.gz
Algorithm Hash digest
SHA256 da00788fc05e912de3f4b318ea8d8fb8b2fc32395e2e33654401ef7856759579
MD5 a4b799c9e00dba9283e1e65e07634e7f
BLAKE2b-256 5e3c9982ea8c5e8f818a012fd40f36c1f2ede75cffb55e8e1160328d3c0248b3

See more details on using hashes here.

File details

Details for the file network_spatial_coherence-0.1.193-py3-none-any.whl.

File metadata

File hashes

Hashes for network_spatial_coherence-0.1.193-py3-none-any.whl
Algorithm Hash digest
SHA256 73c74280c1ec5cbc8de875dce927e18bd390a5294427316a095cc5aa707fffb4
MD5 3bd684fb75b07928f896ade7edba7bb8
BLAKE2b-256 4a018a576fa205bd0c870154fdc4a8814e465f5be8a6c86fa0d2148f28e3cc0b

See more details on using hashes here.

Supported by

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