Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_fs
Commits
f48f7a61
Commit
f48f7a61
authored
Jul 17, 2024
by
戚攀
Browse files
Merge pull request !5 from WeidenthalerMatthias/feature.open_arguments
parents
8f228830
fe2968e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_fs/fits/fsspec_fits.py
View file @
f48f7a61
import
fsspec
from
astropy.io
import
fits
from
astropy.io
import
fits
from
..fsspec_fileobj
import
open_fileobj
from
..fsspec_fileobj
import
open_fileobj
from
..s3_config
import
load_s3_options
from
..s3_config
import
load_s3_options
def
open
(
filename
,
s3_options
=
load_s3_options
()):
def
open
(
filename
,
s3_options
=
load_s3_options
()
,
*
args
,
**
kwargs
):
return
fits
.
open
(
filename
,
fsspec_kwargs
=
s3_options
)
return
fits
.
open
(
filename
,
fsspec_kwargs
=
s3_options
,
*
args
,
**
kwargs
)
def
getdata
(
filename
,
s3_options
=
load_s3_options
(),
*
args
,
**
kwargs
):
def
getdata
(
filename
,
s3_options
=
load_s3_options
(),
*
args
,
**
kwargs
):
fileobj
=
open_fileobj
(
filename
,
s3_options
,
mode
=
'rb'
)
fileobj
=
open_fileobj
(
filename
,
s3_options
,
mode
=
'rb'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment