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.

Based off of the Julia package written by Michael Myers.

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.3.tar.gz (3.2 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.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fourdfpy-0.0.3.tar.gz
  • Upload date:
  • Size: 3.2 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.3.tar.gz
Algorithm Hash digest
SHA256 51222dce16aebeb7eae2b1b7f8fe17f741d352b34ab590bc37cc4cefdc9474bb
MD5 5c619bb227c216902a8708f3c16dcd42
BLAKE2b-256 097b59da84a2cb4512cde833e5dd8eeaac2dd09eec992173614fcc6cecf7aceb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fourdfpy-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 05098ba796553c3bf8a8b9b5156cb83cff044bc7ab2c994054ac1b4abd9e9777
MD5 79b1cc6716644b65cc3217395c1d2520
BLAKE2b-256 dd45e0ea70e8507503b09de2c70aef6cadf5a7bd9084c40e647a8f5d6e702cde

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