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.2.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.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fourdfpy-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 800999811bf8f0c967e3b8a8343505bb7b689606421b9451a3a4e244619ada40
MD5 cbc9222487b875e74a866e5699bf6a05
BLAKE2b-256 947f40fbe3cca809444a9b0e523acb16b02a7c725fff00e9eae4702d44df14a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fourdfpy-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3539aa7fa3c672c1614ade1436b7b274481e4bae4828e1531baeb83917c9382c
MD5 56862bea01713dbb6ea65315674e6122
BLAKE2b-256 c8f13635c1d047f9d68ba57c1fee89d2559a5b7635f1fb09f85914591cafc68d

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