Skip to content

Commit

Permalink
Make file_format='auto' the default
Browse files Browse the repository at this point in the history
  • Loading branch information
wmvanvliet committed May 26, 2020
1 parent 24123e2 commit 927fddd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mne/surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ def _decimate_surface_spacing(surf, spacing):


def write_surface(fname, coords, faces, create_stamp='', volume_info=None,
file_format='freesurfer', overwrite=False):
file_format='auto', overwrite=False):
"""Write a triangular Freesurfer surface mesh.
Accepts the same data format as is returned by read_surface().
Expand Down
4 changes: 2 additions & 2 deletions mne/tests/test_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ def test_io_surface():

# Test writing/reading a Wavefront .obj file
write_surface(op.join(tempdir, 'tmp.obj'), pts, tri, volume_info=None,
overwrite=True, file_format='obj')
overwrite=True)
c_pts, c_tri = read_surface(op.join(tempdir, 'tmp.obj'),
read_metadata=False, file_format='obj')
read_metadata=False)
assert_array_equal(pts, c_pts)
assert_array_equal(tri, c_tri)

Expand Down

0 comments on commit 927fddd

Please sign in to comment.