Skip to content

Commit

Permalink
Merge pull request #26 from mu40/default-spacing
Browse files Browse the repository at this point in the history
Use default spacing 1 for compatibility with FreeSurfer.
  • Loading branch information
avnishks authored Mar 13, 2024
2 parents 3c89ab8 + 0c4671f commit fe2be4b
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 fe2be4b

Please sign in to comment.