Skip to content

Commit

Permalink
- working pynrrd with neuroscripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkpoint committed Dec 18, 2015
1 parent 2f3da86 commit 843104d
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 3 deletions.
Empty file modified DESCRIPTION.rst
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified MANIFEST.in
100644 → 100755
Empty file.
Empty file modified __init__.py
100644 → 100755
Empty file.
Empty file modified pynrrd/__init__.py
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions pynrrd/nrrd.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def getAffine(self):


def getDwiGradients(self):
return self._data['DWMRI_gradient'][0]
return self._data['DWMRI_gradient']

def setDwiGradients(self, vec):
self._data['DWMRI_gradient'] = vec
Expand Down Expand Up @@ -232,7 +232,7 @@ def load(self, filename, get_raw=False):

if (params.has_key(self.grdkey)):
dwivec = params[self.grdkey]
params[self.grdkey] = [dwivec]
params[self.grdkey] = dwivec

params = NrrdHeader(params)
if not get_raw:
Expand Down Expand Up @@ -321,7 +321,7 @@ def write(self,nrrdheader, output):
line = "%s%s%s\n" % (k,eq,val)
elif k=='DWMRI_gradient':
c = 0
for i in val[0]:
for i in val:
i = self.formatOutput(i, brac=False, dim=' ')
line = "%s_%04d:=%s\n" % (k, c, i)
c+=1
Expand Down
Empty file modified pynrrd/utils.py
100644 → 100755
Empty file.
Empty file modified setup.cfg
100644 → 100755
Empty file.
Empty file modified setup.py
100644 → 100755
Empty file.

0 comments on commit 843104d

Please sign in to comment.