Remove explicit use of Masked Array types
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by locating the rebin entry point and tracing its use of np.ma.masked_array and the dask equivalent. Compare the current masked-array handling with the proposed two-array approach, including how other backends such as CuPy could be supported; done means rebin no longer hard-codes NumPy and Dask masked-array types while preserving masking behavior.
Written by the indexing model from the issue text.
Description
Provide a general description of the issue or problem.
It's unclear to me why we explicitly use np.ma.masked_array and the dask equivalent. The problem with doing this is we are hard-coding the masked array handling in rebin to be numpy and dask only, excluding other things such as cupy.
We could just carry around two arrays, one for the data and one for the array? @DanRyanIrish
- Dominant language
- Python
- Stars
- 49
- Forks
- 56
- Avg merge
- 5h 54m
- Merged PRs (30d)
- 9
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sunpy/ndcube
-
Bug
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Feature Request
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Feature Request
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
Discussion Upstream Fix Required
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100