Skip to main content

Compute geodesic distances

Project description

Geodesic Library

The tvb-gdist module is a Cython interface to a C++ library (https://code.google.com/archive/p/geodesic/) for computing geodesic distance which is the length of shortest line between two vertices on a triangulated mesh in three dimensions, such that the line lies on the surface.

The algorithm is due Mitchell, Mount and Papadimitriou, 1987; the implementation is due to Danil Kirsanov and the Cython interface to Gaurav Malhotra and Stuart Knock (TVB Team).

Original library (published under MIT license): https://code.google.com/archive/p/geodesic/

We added a Python wrapped and made small fixes to the original library, to make it compatible with Cython.

To install this, either run pip install tvb-gdist or download sources from Github and run python setup.py install in current folder.

Basic test could be:

python
import gdist

Python 3, Cython, and a C++ compiler are required unless the Pypi whl files are compatible with your system.

Debian package

In order to produce a Debian package, assuming you have the requisite tools installed (apt-get install devscripts python-all-dev python-stdeb):

cd debian
debuild -us -uc
cd ../../

and you should find a suitable deb file for your system.

Current Build Status

https://travis-ci.com/the-virtual-brain/tvb-gdist.svg?branch=trunk

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

tvb-gdist-2.0.2.tar.gz (48.2 kB view details)

Uploaded Source

Built Distributions

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

tvb_gdist-2.0.2-cp38-cp38-win_amd64.whl (78.7 kB view details)

Uploaded CPython 3.8Windows x86-64

tvb_gdist-2.0.2-cp38-cp38-macosx_10_9_x86_64.whl (81.8 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

tvb_gdist-2.0.2-cp37-cp37m-win_amd64.whl (78.2 kB view details)

Uploaded CPython 3.7mWindows x86-64

tvb_gdist-2.0.2-cp36-cp36m-win_amd64.whl (78.1 kB view details)

Uploaded CPython 3.6mWindows x86-64

File details

Details for the file tvb-gdist-2.0.2.tar.gz.

File metadata

  • Download URL: tvb-gdist-2.0.2.tar.gz
  • Upload date:
  • Size: 48.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for tvb-gdist-2.0.2.tar.gz
Algorithm Hash digest
SHA256 c29cc7231251da5871504feaba7df4148ebfd0df10c60cfe396f288620be2e17
MD5 a5addfe26b19e6f0460bea6eba129435
BLAKE2b-256 eb217b518dddb96b321c1fcbbbe7cbef9d7ddae510a5dfc7ff892d4f60736cc8

See more details on using hashes here.

File details

Details for the file tvb_gdist-2.0.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: tvb_gdist-2.0.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 78.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for tvb_gdist-2.0.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3d5b9e2930c6cf600f641eccf8497a475384975ba36a126c8fd41b6d11104a1c
MD5 8359a737a0b45ca0fbd54ec43900e1aa
BLAKE2b-256 21bba9f75691ebfecae4a5a7fb9957db562091c7d4c93aaa1f70201cd974e962

See more details on using hashes here.

File details

Details for the file tvb_gdist-2.0.2-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: tvb_gdist-2.0.2-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 81.8 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for tvb_gdist-2.0.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2b8a4fd446dff580cc621d6201af601d1a4890cad4ed7b49a5ae11ed37905148
MD5 16564d78367f4ed62490746b76e61ef3
BLAKE2b-256 39cae03780d08f422f68db5d6edc2182d9befba58e603bb59e23fb38a0e3c96b

See more details on using hashes here.

File details

Details for the file tvb_gdist-2.0.2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: tvb_gdist-2.0.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 78.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for tvb_gdist-2.0.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b4af39674e5eaee69543551bfe581c16d7f83a26377140795ef57d10952db0da
MD5 db647709affa04d482de59a6ac1238ca
BLAKE2b-256 bf448a3e2e24a8680f6993816aec28ecd3831e7bc1ba318e990c52706359ffbe

See more details on using hashes here.

File details

Details for the file tvb_gdist-2.0.2-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: tvb_gdist-2.0.2-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 78.1 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for tvb_gdist-2.0.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 424d36050a31714d55e7ea5dee24c8f506ba87407c9d376b357e87fdd1a14562
MD5 22ceb50baf905791545ebb3dbf0dc151
BLAKE2b-256 40c2d1c526e965bf6b1f40ac5ee24a3b5c82238e5404d787dae6634ab5fc38c6

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