Commit 3891ad2c authored by qi pan's avatar qi pan
Browse files

update readme and setup

parent 30e497dd
...@@ -84,7 +84,7 @@ fsspec_fits.getheader(filename=in_image_path, ext=1, s3_options=s3_options) ...@@ -84,7 +84,7 @@ fsspec_fits.getheader(filename=in_image_path, ext=1, s3_options=s3_options)
#### 老写法 #### 老写法
```python ```python
fits.getdata(in_ref_flat) fits.getdata(in_ref_flat)
fits.getdata( in_ref_shutter, 1) fits.getdata( in_ref_shutter, ext=1)
``` ```
usage reference: usage reference:
[https://docs.astropy.org/en/stable/io/fits/api/files.html#getdata](https://docs.astropy.org/en/stable/io/fits/api/files.html#getdata) [https://docs.astropy.org/en/stable/io/fits/api/files.html#getdata](https://docs.astropy.org/en/stable/io/fits/api/files.html#getdata)
...@@ -94,8 +94,8 @@ usage reference: ...@@ -94,8 +94,8 @@ usage reference:
from csst_fs import fsspec_fits from csst_fs import fsspec_fits
fsspec_fits.getdata(in_ref_flat) fsspec_fits.getdata(in_ref_flat)
fsspec_fits.getdata(in_ref_flat, s3_options=s3_options) fsspec_fits.getdata(in_ref_flat, s3_options=s3_options)
fsspec_fits.getdata( in_ref_shutter, 1) fsspec_fits.getdata( in_ref_shutter, ext=1)
fsspec_fits.getdata( in_ref_shutter, 1, s3_options=s3_options) fsspec_fits.getdata( in_ref_shutter, s3_options=s3_options, ext=1)
``` ```
### header.tofile ### header.tofile
......
...@@ -5,9 +5,9 @@ setup( ...@@ -5,9 +5,9 @@ setup(
version='0.1.0', version='0.1.0',
packages=find_packages(), packages=find_packages(),
install_requires=[ install_requires=[
'astropy==5.3', 'astropy>=5.3',
'fsspec==2024.5.0', 'fsspec>=2024.5.0',
's3fs==2024.5.0' 's3fs>=2024.5.0'
], ],
python_requires='>=3.9', python_requires='>=3.9',
description='csst pipeline handle file in local file system and remote s3 file system', description='csst pipeline handle file in local file system and remote s3 file system',
......
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