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.2-cp39-cp39-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.9 Windows x86-64

charm_gems-1.2-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.2-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.2-cp38-cp38-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.8 Windows x86-64

charm_gems-1.2-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.2-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.2-cp37-cp37m-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.7m Windows x86-64

charm_gems-1.2-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.2-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.2-cp36-cp36m-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.6m Windows x86-64

charm_gems-1.2-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.2-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.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: charm_gems-1.2-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.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for charm_gems-1.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e4f3b8c78cb4f8886bcfb17942c8ded42e5c1cad9ec0cd23f990e7674682dcc3
MD5 6ff02a8b9fc0b99f9e0b813757710313
BLAKE2b-256 effde7d9b444e28d93944f182e059358062c229c13abdd408a1635cdd77005b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for charm_gems-1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e688d682401d098eac9a27abcac21c3cbb35af376ac55837f5ce29d53bc60fbb
MD5 0c7afa946e6bf76421eab446378a7871
BLAKE2b-256 245a29dbfcb23ac487146b6623e1f9a5503f52d15ac8de0133648f9445f5553b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: charm_gems-1.2-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.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3

File hashes

Hashes for charm_gems-1.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 678532b2845d34026de470901e9c14a135aa1f6e1261fed2eed8e632a3f69b23
MD5 f3632044adb6c55f63f5d360e6f9b233
BLAKE2b-256 be94518dbfa28dab36e8f6b85f0a407a7d113a8f7dabfbdbcb3101f73cc31c1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: charm_gems-1.2-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.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for charm_gems-1.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 54079d66f5802bf451e500acc8a8e3ca88cbcce47249991244b7136abfcdc60d
MD5 620e1c70e72b2b7b7bddb3675cd58665
BLAKE2b-256 4e1a99fdb9fbc6bb3631dab39c522abe69c2614368cac1ae74e60b2b6e6ddf72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for charm_gems-1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5e3552fc2bc65bef612aeca17bd24e72e3cef3a940157206c1aeff013c2718b1
MD5 e9102960106a821aa11b22683baf6300
BLAKE2b-256 3c09f2e4061f46d64c14b1e502c0757a10d2fec4f6b308e1d31a08839cb10fb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: charm_gems-1.2-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.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3

File hashes

Hashes for charm_gems-1.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 54c1d8597859cfcd6851033b8eb420c9f31341689564ce28da503dcf8e50416b
MD5 46a0b946f03fe4eaa9b47f39c11a7d47
BLAKE2b-256 4af3f620c67a4bf9f64285efa19aeaa9a79b3b80a69d60660e24b0f18fd6e852

See more details on using hashes here.

File details

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

File metadata

  • Download URL: charm_gems-1.2-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.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for charm_gems-1.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 67069f52b6c0f6171e760386836de4654c763e3a52347abb3d46f7b9da5f5ba8
MD5 ed8f8d33097aedf029c9d0f590f8876e
BLAKE2b-256 20c2689749f600c01973e73603505df80b5c862f619f010883836c3e16e3e717

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for charm_gems-1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 29712dddce7a4818c3fb27044e60cac00a0f94d5a0b606ac9f08ba9f76bc32f0
MD5 5fafbd7e0e7338d955b7f1b37b94d619
BLAKE2b-256 6a75a7e453863072bbeeabf94bf95fc75ccaec886bd31b1d0da282c35c260b26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: charm_gems-1.2-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.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3

File hashes

Hashes for charm_gems-1.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0c230ddc8a99069d1abe15c25d4a9a559ff2f0a595cca6b5e6f33e3e5c5c7e04
MD5 578fa0807e3e12a3c037755e8c73206f
BLAKE2b-256 144ed0cbb30b839e0b7f1286bbe04b9225ceb0fd072af7bcbeaeac4e883f8e2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: charm_gems-1.2-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.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for charm_gems-1.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 0aa816d8ea6e11512fb9c596d25744bdf9ab52d7243abf00c0f984ab5382070d
MD5 c2f4b3b805bfca1087d5a676beff7f68
BLAKE2b-256 cc737aba85bd71894432686acaa704bbef80e6b31430fde6be9b0858ff769cf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for charm_gems-1.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c5ec100549c2a9378eee92c14b2cc4abe0a12e1d39f42022ab0387d7504143cc
MD5 1eabc0858bc0a96c5e38221b1c856d11
BLAKE2b-256 e4e94a36507b8bbcebb9e1038eadd231633856a58ffcfc826ec6e8d7362cfa3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: charm_gems-1.2-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.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3

File hashes

Hashes for charm_gems-1.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 be658ce173cff6b4a98432fc8ea2d8adb5b33a5015713fc5a488234bbb89fd4d
MD5 adb4831973eb97bff599ccef330c0808
BLAKE2b-256 3774c0918df7d3a8bedc0ce04d305e72c9ab1737c97abbf4b7c750b5883355d9

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