Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for BrainVoyager VTC, MSK, VMR and NR-VMP files #216

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
2 changes: 2 additions & 0 deletions nibabel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
from .nifti2 import Nifti2Header, Nifti2Image, Nifti2Pair
from .minc1 import Minc1Image
from .minc2 import Minc2Image
from .brainvoyager import (BvMskHeader, BvMskImage, BvVmpHeader, BvVmpImage,
BvVtcHeader, BvVtcImage, BvVmrHeader, BvVmrImage)
# Deprecated backwards compatiblity for MINC1
from .deprecated import ModuleProxy as _ModuleProxy
minc = _ModuleProxy('nibabel.minc')
Expand Down
5 changes: 5 additions & 0 deletions nibabel/arrayproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,8 @@ def is_proxy(obj):
return obj.is_proxy
except AttributeError:
return False


class CArrayProxy(ArrayProxy):
# Assume C array memory layout
order = 'C'
18 changes: 18 additions & 0 deletions nibabel/brainvoyager/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the NiBabel package for the
# copyright and license terms.
#
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
''' Support for BrainVoyager file formats '''
from .bv_msk import BvMskHeader, BvMskImage
from .bv_vmp import BvVmpHeader, BvVmpImage
from .bv_vtc import BvVtcHeader, BvVtcImage
from .bv_vmr import BvVmrHeader, BvVmrImage

__all__ = ('BvMskHeader', 'BvMskImage',
'BvVmpHeader', 'BvVmpImage',
'BvVtcHeader', 'BvVtcImage',
'BvVmrHeader', 'BvVmrImage')
Loading