Skip to main content

Python bindings of the gems segmentation package.

Project description

charm-gems

PyPI version Linux Build MacOS Build Windows Build

This repository contains the gems C++ code and python bindings used in Freesurfer's Sequence-Adaptive Multimodal SEGmentation (SAMSEG) (Puonti et al., NeuroImage, 2016) and in SimNIBS 4.0 Complete Head Anatomy Reconstruction Method (CHARM) (Puonti et al., NeuroImage, 2020) to create individualized head models for electric field simulations.

Installation

The compiled charm-gems library is available via pip ≥ 19.3, for python 3.6, 3.7 and 3.8

pip install --upgrade pip
pip install charm-gems

Afterwards the package can be imported by calling

import charm_gems as gems

Manual Installation

Requirements

Preparation

This repository uses submodules. To start it, use

git submodule init
git submodule update

Linux/MacOS

  1. Build ITK
mkdir ITK-build
cd ITK-build
cmake \
    -DBUILD_SHARED_LIBS=OFF \
    -DBUILD_TESTING=OFF \
    -DBUILD_EXAMPLES=OFF \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=../ITK-install \
    ../ITK
make install
cd ..
  1. Install charm-gems
ITK_DIR=ITK-install python setup.py install

Windows (Tested on Visual Studio 2019)

  1. Build ITK
md ITK-build
cd ITK-build
cmake.exe ^
    -DBUILD_SHARED_LIBS=OFF ^
    -DBUILD_TESTING=OFF ^
    -DBUILD_EXAMPLES=OFF ^
    -DCMAKE_BUILD_TYPE=Release ^
    -DCMAKE_INSTALL_PREFIX=..\ITK-install ^
    ..\ITK
cmake --build . --config Release --target Install
cd ..
  1. Install charm-gems
set ITK_DIR=ITK-install
python setup.py install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

charm_gems-1.3-cp39-cp39-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.9 Windows x86-64

charm_gems-1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

charm_gems-1.3-cp39-cp39-macosx_10_9_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

charm_gems-1.3-cp38-cp38-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.8 Windows x86-64

charm_gems-1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

charm_gems-1.3-cp38-cp38-macosx_10_9_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

charm_gems-1.3-cp37-cp37m-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.7m Windows x86-64

charm_gems-1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

charm_gems-1.3-cp37-cp37m-macosx_10_9_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

charm_gems-1.3-cp36-cp36m-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.6m Windows x86-64

charm_gems-1.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

charm_gems-1.3-cp36-cp36m-macosx_10_9_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

Details for the file charm_gems-1.3-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: charm_gems-1.3-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for charm_gems-1.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ab229cd5269beeba3c95dd3eebb73ca6b9967a46cd2e98630d6a6edcccabd0e7
MD5 ece5f248b567fc4864196ed01d77aa38
BLAKE2b-256 ef81b40dda2cd6305550d90702dec6c05724036c3cf885c4e3d1acf291af49b1

See more details on using hashes here.

File details

Details for the file charm_gems-1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: charm_gems-1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for charm_gems-1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d24aa2743282486124193e30913852c84f18b5059323a160df95283fccdd1a9a
MD5 af36dd47406acbb9ae6a0795bd5ba81b
BLAKE2b-256 d8ebdb7f4bda0dcabfd43b6291ae0545ceec92731c03ab0f38f055212ae22c6b

See more details on using hashes here.

File details

Details for the file charm_gems-1.3-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: charm_gems-1.3-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.3

File hashes

Hashes for charm_gems-1.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 979a234449ecf2e39a19514a890509d086b3f583243805e33860f6e9e8544d07
MD5 bdc7cfb8385146414d8eb7b1a0677456
BLAKE2b-256 4a1917b36fc967dc0eb88cc77eea59ff5a7f2c26f80b202b2fc0b28af25c2a72

See more details on using hashes here.

File details

Details for the file charm_gems-1.3-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: charm_gems-1.3-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for charm_gems-1.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1f8961ac7f10cc0c998ae3e4041cdc5a48807d921f81b4166462d6ea5d5125a6
MD5 85b6e79962c1285e70a6c98aa097114a
BLAKE2b-256 5397a9abe069e7695f733994379f735cb21f13b7680e4b4ebdf97f0d53efb5b2

See more details on using hashes here.

File details

Details for the file charm_gems-1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: charm_gems-1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for charm_gems-1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5bf84bf870c98dbc1648cdb5d20abe95e49ec66f6e3751a67f690626a006c780
MD5 42544903b8d06de935e5460e7b09fdbe
BLAKE2b-256 10d8ef4d119ec94e8a767831548eba0a8435845fa95e307b6444a49744f5f673

See more details on using hashes here.

File details

Details for the file charm_gems-1.3-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: charm_gems-1.3-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.3

File hashes

Hashes for charm_gems-1.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 61fd447a0cf0967d67791cc31290fe66bf2be5082f7d0b3021c61947b69d553a
MD5 970861e84029b06fd575e03d0f635311
BLAKE2b-256 e781719e5769e159a02c8b93299abe77025655bde0cb9ce56a04eef3d2401053

See more details on using hashes here.

File details

Details for the file charm_gems-1.3-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: charm_gems-1.3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for charm_gems-1.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 28a2bafe62f809d7619b273b861792d2458efb47429123a903b4dbefbc3d221f
MD5 1216450cffc08b0ca161ae8cf0517e52
BLAKE2b-256 a6a2342191630dc872cc172813ebee0636a20547e8782a8a1f399fa598fedf41

See more details on using hashes here.

File details

Details for the file charm_gems-1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: charm_gems-1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for charm_gems-1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 81db506799fa3efd5d94ad88509c8484fe64b10f5dc743ad97f85ffd5c150646
MD5 599ab4142551dbdb985595898ac14606
BLAKE2b-256 4f3d5390802e8aa63a9c80e5a94184feefcad2246a87e368f907740253c2b27d

See more details on using hashes here.

File details

Details for the file charm_gems-1.3-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: charm_gems-1.3-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.3

File hashes

Hashes for charm_gems-1.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6ff42486af2bb5971fe5873e87bd79006d165fc20732e30521bc062bb43d0286
MD5 9835f0f1c96fe8cd7c783bca3e1df0c7
BLAKE2b-256 8470e14853f6710fb04f7a1248ccf50e4b5e8f5b114e5d4ac4f6ce9a935bda0e

See more details on using hashes here.

File details

Details for the file charm_gems-1.3-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: charm_gems-1.3-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for charm_gems-1.3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 3fe6df2204738b6db2e0d8ae4566c1f7a418cb4348c171bb5259e9d6db4ce9f3
MD5 4ca16ff11b9715d58a1a2a8eab54e75d
BLAKE2b-256 06c6a50ee1331e063a6473fd3ef6f1699e5a5617ef9d7f345a3147bbbf15899a

See more details on using hashes here.

File details

Details for the file charm_gems-1.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: charm_gems-1.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for charm_gems-1.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eca92debddc437abfb9b0902a863cadc78aede861e706e0a16212c00294b9fa4
MD5 7b3f1c1aba2fe8fc29e8f53b41501f9b
BLAKE2b-256 b5c6533f0502f6589074e40acace56b98d65270dcc6f4af91378bac8aa3d07f1

See more details on using hashes here.

File details

Details for the file charm_gems-1.3-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: charm_gems-1.3-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.3

File hashes

Hashes for charm_gems-1.3-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 24fe7817a531d6dc8458960902b7bf9aa7cc0564b2dcc6906c05f465e0b4c0cb
MD5 ed10ba76570c664cc0265b034f8436ad
BLAKE2b-256 b91521431a7161b4cb265422d6caff49f668d089d2b6dbe6a0fab71007fe41ae

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