question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A documentation update required in fits_ccddata_reader

See original GitHub issue

Description

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:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
mzhengxicommented, Jul 17, 2021

Hello! I would like to pick up this issue as my first contribution for the SciPy 2021 sprints

1reaction
homeboy445commented, Dec 4, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found