Skip to main content

A simple package for converting a 4dfp brain image into a Numpy array.

Project description

fourdfpy

This is a (very!) simple package for converting the binary data from Avi Snider's 4dfp neuroimaging file format into a Numpy array, that can then be used in your Python scripts.

Install

pip install fourdfpy

Running

import fourdfpy

my_4dfp_data = fourdfpy.load("/path/to/myimg")

The path to the 4dfp files should only include the root name without the extension (example: "/path/to/myimg.4dfp.img" should instead be "/path/to/myimg"). Make sure the .4dfp.img and .4dfp.hdr files are in the same directory.

[ ] TODO: add support for including file extension

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

fourdfpy-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

fourdfpy-0.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file fourdfpy-0.0.1.tar.gz.

File metadata

  • Download URL: fourdfpy-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for fourdfpy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 263f368075a9fcb043934f7cf5deb715aee14be3bbc5ec6e2104877bfe552f40
MD5 dfb57e2af2c9973f5fd33af4f1e3df40
BLAKE2b-256 6d262cb5000f2c76523bb3c89f0caa7a09ecf6b3a34e27fec0d5f61fad133aeb

See more details on using hashes here.

File details

Details for the file fourdfpy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: fourdfpy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for fourdfpy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a11c71070a2472da97f6f600d2dc3382a8572e3a099716c033ee76fe60c2f973
MD5 953bc74303f68678945e10f214a61ec6
BLAKE2b-256 a4f602528ca656d2a94035af44156cf0192a9a917e43d12886fd03691981c849

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