Commit 9c67dc59 authored by Matthias Weidenthaler's avatar Matthias Weidenthaler
Browse files

Fixed fsspec_header tofile function

parent f48f7a61
......@@ -4,7 +4,7 @@ from ..fsspec_fileobj import open_fileobj
from ..s3_config import load_s3_options
def tofile(fits_header, out_path, s3_options=load_s3_options(), *args, **kwargs):
fileobj = open_fileobj(out_path, s3_options)
fileobj = open_fileobj(out_path, s3_options, mode='wb')
fits_header.tofile(fileobj, *args, **kwargs)
if hasattr(fileobj, 'close'):
fileobj.close()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment