astropy / astropy/photutils

Make extract_stars able to take plain Numpy arrays

Open
#967 0 comments 0 reactions 0 assignees View on GitHub
epsf_builder psf
Dominant language
Python
Stars
307
Forks
156
Avg merge
56m
Merged PRs (30d)
58

Description

It would be nice to not have to create an NDData object just for ``extract_stars`` - other parts of photutils support plain Numpy arrays. Maybe ``extract_stars`` could include the ``@support_nddata`` decorator:

http://docs.astropy.org/en/stable/api/astropy.nddata.support_nddata.html

Contributor guide

Open the contributing guide

Research direction

Locate the extract_stars entry point and review how other photutils functions use Astropy's support_nddata decorator. Check the linked support_nddata documentation, then verify that plain NumPy arrays and NDData objects are both accepted by extract_stars without changing its existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.