Skip to main content

Read Siemens raw data.

Project description

RawDatarInator

Python bindings for BART’s twixread function ([1]). This new version of rawdatarinator replaces the old Python port of a MATLAB script. Consequently, this one runs much faster and breaks less often. A cleaner interface is provided which will break all old code. See usage for examples. In general, this new release has fewer features that work better.

The name of the project pays homage to the naming convention of the main antagonist in Disney’s hit cartoon “Phineas and Ferb” ([2]).

Installation

This package is known to work with Python 3.6.8 using Ubuntu 18.04. If it doesn’t work on your system, please submit an issue and we can try to figure something out. The goal is to provide a simple pip-installable Python interface for BART’s twixread function. The Cythonized BART code is compiled during the installation, so you will need a C compiler installed.

Use pip to install:

pip install rawdatarinator

Usage

You get a few functions:

# BART's twixread function can be invoked right from a Python
# script:
from rawdatarinator import twixread
twixread('path/to/input/data.dat', 'path/to/output')

# A pair of .cfl, .hdr will be created: path/to/output.[cfl/hdr]
# as BART normally does.  However, if you're using these Python
# bindings, you might want to just grab the data straight away.
# You can do this by not providing any output file:
data = twixread('path/to/data.dat', A=True)

# You can read existing BART files like this:
from rawdatarinator import read
data = read('path/to/file/without/extentsion')

# If you've used BART's Python interface, this is a modified
# verison of readcfl.  It works just like that.  Similarly,
# BART's writecfl functionality can be found:
from rawdatarinator import write
write('path/to/out', data)

References

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

rawdatarinator-1.4.0.tar.gz (173.2 kB view details)

Uploaded Source

Built Distributions

rawdatarinator-1.4.0-pp37-pypy37_pp73-manylinux2010_x86_64.whl (124.1 kB view details)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

rawdatarinator-1.4.0-cp39-cp39-manylinux2010_x86_64.whl (545.4 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

rawdatarinator-1.4.0-cp39-cp39-manylinux2010_i686.whl (510.9 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686

rawdatarinator-1.4.0-cp39-cp39-macosx_10_9_x86_64.whl (140.8 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

rawdatarinator-1.4.0-cp38-cp38-manylinux2010_x86_64.whl (575.3 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

rawdatarinator-1.4.0-cp38-cp38-manylinux2010_i686.whl (537.4 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

rawdatarinator-1.4.0-cp38-cp38-macosx_10_9_x86_64.whl (139.2 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

rawdatarinator-1.4.0-cp37-cp37m-manylinux2010_x86_64.whl (512.3 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

rawdatarinator-1.4.0-cp37-cp37m-manylinux2010_i686.whl (477.6 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

rawdatarinator-1.4.0-cp37-cp37m-macosx_10_9_x86_64.whl (138.2 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file rawdatarinator-1.4.0.tar.gz.

File metadata

  • Download URL: rawdatarinator-1.4.0.tar.gz
  • Upload date:
  • Size: 173.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for rawdatarinator-1.4.0.tar.gz
Algorithm Hash digest
SHA256 7a095d58d5e8f838be5c92c6620cc3b1fccb304c7eebdd78e8c32476604a32cf
MD5 f84fb3ab0eb3b4313078901aee76112a
BLAKE2b-256 360a2f16c660eb9985ac18ad42c365058576ae278831bef250676712dcd171ec

See more details on using hashes here.

File details

Details for the file rawdatarinator-1.4.0-pp37-pypy37_pp73-manylinux2010_x86_64.whl.

File metadata

  • Download URL: rawdatarinator-1.4.0-pp37-pypy37_pp73-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 124.1 kB
  • Tags: PyPy, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for rawdatarinator-1.4.0-pp37-pypy37_pp73-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 612ff07140cb6035cb2fec159909a500396a399edd0ec2d3c344085ce9ff223b
MD5 b8ca7ea2fd0c7becb7c624c6ca34e72e
BLAKE2b-256 e760ac32f989b88b59d73b5e8c333b122a458bea7ebaae2633e61666a3547cbd

See more details on using hashes here.

File details

Details for the file rawdatarinator-1.4.0-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

  • Download URL: rawdatarinator-1.4.0-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 545.4 kB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for rawdatarinator-1.4.0-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 97ef71a2cd0ea7c0332bd4e41070fcda5c3c8cf6a49ea147985ff9c18103ba92
MD5 35506b8341880dc089a656dd80e2a866
BLAKE2b-256 8564086deba969dd826e323c6f1a3b5eafac4233a25e2bd74d2f4e7e0bddc1ae

See more details on using hashes here.

File details

Details for the file rawdatarinator-1.4.0-cp39-cp39-manylinux2010_i686.whl.

File metadata

  • Download URL: rawdatarinator-1.4.0-cp39-cp39-manylinux2010_i686.whl
  • Upload date:
  • Size: 510.9 kB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for rawdatarinator-1.4.0-cp39-cp39-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 cd6432a2419c714deb1607da16228c71dac0bc3607400b14d8e36d41906ac1c3
MD5 360451ef98720213fb904831bc3378e5
BLAKE2b-256 0ca1a97421f153c9b6373299e9222f7948aab6ddcf5c12be66b05d1b29ff0b10

See more details on using hashes here.

File details

Details for the file rawdatarinator-1.4.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: rawdatarinator-1.4.0-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 140.8 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for rawdatarinator-1.4.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8caac36344e74ed6a53facb9fc68a68bdfeeaa078f739fe2f581dbec81dd9fca
MD5 930848cf3725cdaba82df1289904af6d
BLAKE2b-256 aa03c7cbeb9e71b216dc5ef28c42e0b199c453f1cc3f56c8f1674c18cf9ffce9

See more details on using hashes here.

File details

Details for the file rawdatarinator-1.4.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: rawdatarinator-1.4.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 575.3 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for rawdatarinator-1.4.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9bcc4910dcad0bbf024e223927f24c8f668681393376758333097f09336b769d
MD5 cb50169d97425697ec77804c340e9775
BLAKE2b-256 634e5ed1544a0542e91b9cdcfed66bc471b0ca92620389a276005c77c7004be2

See more details on using hashes here.

File details

Details for the file rawdatarinator-1.4.0-cp38-cp38-manylinux2010_i686.whl.

File metadata

  • Download URL: rawdatarinator-1.4.0-cp38-cp38-manylinux2010_i686.whl
  • Upload date:
  • Size: 537.4 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for rawdatarinator-1.4.0-cp38-cp38-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 41e6b6627d395acde183edaa8c28886b18785b1671316dce896dc344deff3ef6
MD5 54ae34d6a3225869a5cc8e8d7e3aa08f
BLAKE2b-256 db6dccbf60f43d5eb929c3d97ce44a5dfb5410691ab70fd3ca700d4b91607f89

See more details on using hashes here.

File details

Details for the file rawdatarinator-1.4.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: rawdatarinator-1.4.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 139.2 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for rawdatarinator-1.4.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6ab951263f05ecbe46af381439e1f4ddfac67989901542a0713b59b28a9b27dd
MD5 da6bea2a4638e394340fa39d677d2e55
BLAKE2b-256 a1ea36b51316fb8ec8aa71234151d63c79f71428001a7b0153f21f2c4e81ef9d

See more details on using hashes here.

File details

Details for the file rawdatarinator-1.4.0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: rawdatarinator-1.4.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 512.3 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for rawdatarinator-1.4.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3f4b176343ae36fc756930e2d606150ab17bb34146bf94ee83f2852a8001bf15
MD5 dca0045b8d8ab67a8e994156501fa406
BLAKE2b-256 b82502b64279299cded70b0eea7475689612589f933a41acea8be97b940a92ef

See more details on using hashes here.

File details

Details for the file rawdatarinator-1.4.0-cp37-cp37m-manylinux2010_i686.whl.

File metadata

  • Download URL: rawdatarinator-1.4.0-cp37-cp37m-manylinux2010_i686.whl
  • Upload date:
  • Size: 477.6 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for rawdatarinator-1.4.0-cp37-cp37m-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 386c4b7d283377ba55ffe6ca352a3a77195d8ac54bc1f63cbd547f871bf3706b
MD5 eb3fce5bd278ac4da73d82ce6b657c0b
BLAKE2b-256 b61afd3cf9835e083c1a0945bce6fea71f6a760d2d84eee50eb100a8ee48ae90

See more details on using hashes here.

File details

Details for the file rawdatarinator-1.4.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: rawdatarinator-1.4.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 138.2 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for rawdatarinator-1.4.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 672769808db60129dbf3ccf2e5de44fbe88e5b558010090035cea8008a6d06e2
MD5 cafa84ebea1ed5c05437a530377d4dd5
BLAKE2b-256 a927d21286724adfa32c754bee8aca5a92a895b9c2a7cdc5a2c033195f933230

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page