Skip to main content

brainsurfy

Simple surface plots in Python based on ggseg parcellations.

import matplotlib.pyplot as plt

from brainsurfy import fetch_atlas_data, simulate_data, plot_surf

atlas_data = fetch_atlas_data('schaefer7_400')
sim_data = simulate_data(atlas_data)

plot_surf(atlas_data, sim_data, cmap=plt.cm.viridis, cbar=True)

Output:

image

Installation

brainsurfy is meant to be used with Python 3.9 or above, and has been tested on Python 3.9-3.12.

Dependencies

User installation

To install brainsurfy, run this command in your terminal:

pip install brainsurfy

This is the preferred method to install brainsurfy, as it will always install the most recent stable release.

If you don’t have pip installed, this Python installation guide can guide you through the process.

to-do:

  • a lot of things...
  • look into 3d surface plots
  • docs (once there is more stuff)
  • form into package and upload to pypi

======= History

0.0.1 (2024-03-15)

  • First release on PyPI.

0.0.2 (2024-03-15)

  • Fix fetching atlases function.

0.0.3 (2024-03-15)

  • More fixes including actually including the atlases folder (dumb mistake...)

Metadata

Release files for brainsurfy 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brainsurfy 0.0.3
File Size Uploaded Provenance
brainsurfy-0.0.3.tar.gz 78.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for brainsurfy 0.0.3
File Interpreter ABI Platform
brainsurfy-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 157.3 kB

Release files / brainsurfy-0.0.3.tar.gz

Download URL brainsurfy-0.0.3.tar.gz
Size 78.7 kB
Tags Source
SHA-256 checksum
How to use checksums
402f263adcbe451fc15fb12d254bbbcc31160bd41aa242143dc9395f12c25787
BLAKE2b-256 checksum
How to use checksums
610f8b574f0ecea5cc14bdfc4d0afd60c4ee0fcbe530ed1866eee94c35b9021f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / brainsurfy-0.0.3-py3-none-any.whl

Download URL brainsurfy-0.0.3-py3-none-any.whl
Size 78.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
702df6dde14f74601fae86052881a0a4f7ad321e4d89b347f7f281624e60dce5
BLAKE2b-256 checksum
How to use checksums
f1fbee128bb15b78b32814b611d77735207d2f4834a39f2a3b873329a8435d16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Security for brainsurfy 0.0.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page