A documentation update required in fits_ccddata_reader
See original GitHub issueDescription
The fits_ccddata_reader
documentation says the argument hdu
can only accept int
, but as it uses the following lines in the source code, it can actually accept, e.g., string (EXTNAME
) or tuple of string and integer ((EXTNAME, EXTVER)
)
with fits.open(filename, **kwd) as hdus:
hdr = hdus[hdu].header
I confirmed the following codes work, for example:
CCDData.read("test.fits", hdu=('a', 2), unit='adu')
CCDData.read("test.fits", hdu=('a', None), unit='adu')
By the way, I think it is a bit strange that this reader has hdu
while its name (those in *args
) is ext
in, e.g., getdata
😅
System Details
Darwin-18.7.0-x86_64-i386-64bit Python 3.7.7 (default, Mar 23 2020, 17:31:31) [Clang 4.0.1 (tags/RELEASE_401/final)] Numpy 1.19.2 astropy 4.0.2 Scipy 1.5.2 Matplotlib 3.2.2
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Real ID Documentation Checklist - IN.gov
Real ID Documentation Checklist. As of May 7, 2025, a Real ID-compliant driver's license, permit, or identification card will be required to board....
Read more >Form I-9 Acceptable Documents - USCIS
Form I-9 Acceptable Documents. Employees must provide documentation to their employers to show their identity and authorization to work.
Read more >Article - Standard Documentation Requirements for All Claims ...
Use this page to view details for the Local Coverage Article for standard documentation requirements for all claims submitted to dme macs.
Read more >When are employers required to reverify or update I-9 ... - SHRM
Employers are required to reverify an employee's documentation only when the employee's employment authorization document (EAD) or receipt has expired.
Read more >Required Documents - Montana Department of Justice
Most services require documents for proof of identity, proof of authorized presence, and proof of Montana residency. Review all areas before visiting a ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello! I would like to pick up this issue as my first contribution for the SciPy 2021 sprints
I really am confused still and I think since I am a new contributor I should tackle some easy tasks so as to get some idea about the codebase and maybe after that I can try to solve this. P.S: Thanks a lot for helping!