Skip to content

Commit 3ee09f5

Browse files
committed
fix: fmt type
1 parent 45be03b commit 3ee09f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nitransforms/linear.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def to_filename(self, filename, fmt='X5', moving=None):
298298
else:
299299
np.savetxt(filename, mat[0], delimiter=' ', fmt='%g')
300300
return filename
301-
elif fmt.lower() == 'lta':
301+
elif fmt.lower() == 'fs':
302302
# xform info
303303
lt = io.LinearTransform()
304304
lt['sigma'] = 1.
@@ -342,7 +342,7 @@ def load(filename, fmt='X5', reference=None):
342342
# elif fmt.lower() == 'afni':
343343
# parameters = LPS.dot(self.matrix.dot(LPS))
344344
# parameters = parameters[:3, :].reshape(-1).tolist()
345-
elif fmt.lower() == 'lta':
345+
elif fmt.lower() == 'fs':
346346
with open(filename) as ltafile:
347347
lta = io.LinearTransformArray.from_fileobj(ltafile)
348348
if lta['nxforms'] > 1:

0 commit comments

Comments
 (0)