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
3bdf00d1
Commit
3bdf00d1
authored
Aug 14, 2024
by
Matthias Weidenthaler
Browse files
Updated readme file
parent
a12a660d
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
3bdf00d1
...
...
@@ -62,6 +62,15 @@ with s3_fs.open('s3://csst-prod/gaia/test/requirements.txt', s3_options=s3_optio
file
.
write
(
"CSST"
)
```
### Check if the given file path exists
```
python
from
csst_fs
import
fs
# local or on s3, depending on the given path
fs
.
isfile
(
'requirements.txt'
)
fs
.
isfile
(
's3://csst-prod/test.txt'
)
fs
.
isfile
(
's3://csst-prod/test.txt'
,
s3_options
=
s3_options
)
```
## astropy直接读写s3的写法适配
### fits.open
#### 老写法
...
...
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