Skip to content

Commit

Permalink
Use default spacing 1 for compatibility with FreeSurfer.
Browse files Browse the repository at this point in the history
  • Loading branch information
mu40 committed Mar 8, 2024
1 parent 3c89ab8 commit 0c4671f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surfa/io/framed.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def save(self, arr, filename, intent=FramedArrayIntents.mri):
# gcamorph meta (mgz warp: int int float)
fsio.write_tag(file, fsio.tags.gcamorph_meta, 12)
write_bytes(file, arr.format, dtype='>i4')
write_bytes(file, arr.metadata.get('spacing', 0), dtype='>i4')
write_bytes(file, arr.metadata.get('spacing', 1), dtype='>i4')
write_bytes(file, arr.metadata.get('exp_k', 0.0), dtype='>f4')

# write history tags
Expand Down

0 comments on commit 0c4671f

Please sign in to comment.