We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.copy()
1 parent 6696caa commit 09166efCopy full SHA for 09166ef
nitransforms/io/afni.py
@@ -35,10 +35,9 @@ def to_string(self, banner=True):
35
36
@classmethod
37
def from_ras(cls, ras, moving=None, reference=None):
38
- """Create an ITK affine from a nitransform's RAS+ matrix."""
39
- ras = ras.copy()
40
- pre = LPS.copy()
41
- post = LPS.copy()
+ """Create an AFNI affine from a nitransform's RAS+ matrix."""
+ pre = LPS
+ post = LPS
42
43
if reference is not None:
44
reference = _ensure_image(reference)
@@ -94,8 +93,8 @@ def from_string(cls, string):
94
93
95
def to_ras(self, moving=None, reference=None):
96
"""Return a nitransforms internal RAS+ matrix."""
97
98
99
100
101
0 commit comments