charm-gems
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
- A C++ compiler compatible with C++ 11
- Python ≥ 3.6
- CMake
- Make (Linux/MacOS)
- Visual Studio (Windows)
- zlib (for windows, see https://github.com/horta/zlib.install)
Preparation
This repository uses submodules. To start it, use
git submodule init
git submodule update
Linux/MacOS
- 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 ..
- Install charm-gems
ITK_DIR=ITK-install python setup.py install
Windows (Tested on Visual Studio 2019)
- 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 ..
- Install charm-gems
set ITK_DIR=ITK-install
python setup.py install
Metadata
Release files for charm-gems 1.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 52.2 MB
Release files / charm_gems-1.3.3-cp311-cp311-win_amd64.whl
| Download URL | charm_gems-1.3.3-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
8bb2cfe5aac2d121af375f4b10fe6268ef79d67b960208a9cf811c7fab6c295b
|
|
BLAKE2b-256 checksum How to use checksums |
59f65854a5076744e3f49ccb9c089918aa3a539a4e4789183ca1f3f60cb96d96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / charm_gems-1.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | charm_gems-1.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.4 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
5f758f3ac57ca3abd33653d198d503c51e8eded76617e413761bf7c35cbaca0b
|
|
BLAKE2b-256 checksum How to use checksums |
2a25241c17a087a1ecde8c4852b37b57fbcb631f4e9a117257321da42faf277f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Release files / charm_gems-1.3.3-cp311-cp311-macosx_11_0_universal2.whl
| Download URL | charm_gems-1.3.3-cp311-cp311-macosx_11_0_universal2.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.11 macOS 11.0+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
bb4490a70ad6a68228d5c9a9eb2ad39cb667284b0c70d98a7bce5d8d31314c5e
|
|
BLAKE2b-256 checksum How to use checksums |
1d0536f746ea3a77a72806003bdfc649c4b33c1cf1e786a61e31e91dfec0477c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Release files / charm_gems-1.3.3-cp310-cp310-win_amd64.whl
| Download URL | charm_gems-1.3.3-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
84c0c75330f171de0ae2a05b87465248677cc8807f6c34a99379a5c872a98a88
|
|
BLAKE2b-256 checksum How to use checksums |
09cba6d94d7156479846aeaaded7966a7219b94d5edee5ba1e4e36e45c1ab72d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / charm_gems-1.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | charm_gems-1.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.4 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
c76faf1881fda89ebc7d6313ca809e878e4b2e093bcba153187115cf28ac1de0
|
|
BLAKE2b-256 checksum How to use checksums |
e5fc1980f980c45c613ba068b869302253cad8d0f56c306f31551a1c245f7847
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Release files / charm_gems-1.3.3-cp310-cp310-macosx_12_0_x86_64.whl
| Download URL | charm_gems-1.3.3-cp310-cp310-macosx_12_0_x86_64.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.10 macOS 12.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
7aaa52d7bcf458f1ee0499c1887fc247f3efb97896ce6af620e909eb4505c777
|
|
BLAKE2b-256 checksum How to use checksums |
3c967fa8bc78ffff37dd99d81de163f64c931d3719f13b3a3123dbf119ce4d82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Release files / charm_gems-1.3.3-cp39-cp39-win_amd64.whl
| Download URL | charm_gems-1.3.3-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 2.8 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
15da883096d329e895cc769e0cf9070efcf7a949d5b601f273793ed05d4daa19
|
|
BLAKE2b-256 checksum How to use checksums |
ec41e48e5e9a4b8a81fd19fa11250981d12fb5e802b1129b0abbb481cb1545d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / charm_gems-1.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | charm_gems-1.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.4 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
083f1b3d6362efc90b3a4ad795fe041c9ee52058490b32a35fb2e32af42dba7c
|
|
BLAKE2b-256 checksum How to use checksums |
161cd6c761a530376be9ddf193fbef0973da86d6862cb441d02394bce8f07892
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Release files / charm_gems-1.3.3-cp39-cp39-macosx_12_0_x86_64.whl
| Download URL | charm_gems-1.3.3-cp39-cp39-macosx_12_0_x86_64.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.9 macOS 12.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
c080d1e11becaaacc5ef855bd0fe8b8e041dc0b65c61272d34aad64485b38805
|
|
BLAKE2b-256 checksum How to use checksums |
58f16ed2bffa45f3ab510e7a2a1a75e03c9d9c77cf8a7fc6c5edca5d004b517e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Release files / charm_gems-1.3.3-cp38-cp38-win_amd64.whl
| Download URL | charm_gems-1.3.3-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
25ec6b9403b75ebbd06e2767f314d7ba6bc57778bccd8a81bd7f0b550f84e8d0
|
|
BLAKE2b-256 checksum How to use checksums |
7cac8b814f1e67edd3840273d51a7b46c1159ee7a1ffcf92a89e8df5eb88e1d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / charm_gems-1.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | charm_gems-1.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 5.4 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e86a8ea9b6a1f7e3feef9534bc7ce1908142381cd479a17cdd824f97f8cf6976
|
|
BLAKE2b-256 checksum How to use checksums |
ef314af2ef0d2463913efcd10a0a42eac03069c1a9b963153206f0af12b6c24a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Release files / charm_gems-1.3.3-cp38-cp38-macosx_12_0_x86_64.whl
| Download URL | charm_gems-1.3.3-cp38-cp38-macosx_12_0_x86_64.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.8 macOS 12.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
0c1398129c835e8b70e27dfd5fce66a737250dd9ca76328de0175bad2573c8da
|
|
BLAKE2b-256 checksum How to use checksums |
6942c311350f5c43121b5a2440912845190d7a59da829452c1d594b2b9d1a07b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Security for charm-gems 1.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.