Skip to content

Commit b4b5af4

Browse files
Julien Marabottooesteban
authored andcommitted
enh: update implementation of X5
(cherry picked from commit a102f1e)
1 parent 5b93bcc commit b4b5af4

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

nitransforms/io/x5.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,9 @@ def __str__(self):
3535
return
3636

3737
def to_filename(self, filename):
38-
"""Store this transform to a file with the appropriate format."""
38+
'''store this transform to a file with the X5 format'''
3939
sa = self.structarr
40-
affine = np.array(
41-
np.hstack(
42-
(sa["parameters"][:3, :3].reshape(-1), sa["parameters"][:3, 3])
43-
)[..., np.newaxis],
44-
dtype="f8",
45-
)
40+
affine = '''some affine that will return a 4x4 array'''
4641
return
4742

4843
@classmethod
@@ -61,9 +56,3 @@ class X5LinearTransformArray(BaseLinearTransformList):
6156
def xforms(self):
6257
"""Get the list of internal ITKLinearTransforms."""
6358
return self._xforms
64-
65-
@xforms.setter
66-
def xforms(self, value):
67-
self._xforms = list(value)
68-
for i, val in enumerate(self.xforms):
69-
val["index"] = i

0 commit comments

Comments
 (0)