Commit fe2968e9 authored by Matthias Weidenthaler's avatar Matthias Weidenthaler
Browse files

Added args to fsspec_fits.open

parent 8f228830
import fsspec
from astropy.io import fits
from ..fsspec_fileobj import open_fileobj
from ..s3_config import load_s3_options
def open(filename, s3_options=load_s3_options()):
return fits.open(filename, fsspec_kwargs=s3_options)
def open(filename, s3_options=load_s3_options(), *args, **kwargs):
return fits.open(filename, fsspec_kwargs=s3_options, *args, **kwargs)
def getdata(filename, s3_options=load_s3_options(), *args, **kwargs):
fileobj = open_fileobj(filename, s3_options, mode='rb')
......
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