astropy / astropy/regions

Mask.multiply should broadcast mask

Open
#148 0 comments 1 reaction 0 assignees View on GitHub
core feature-request wishlist
Dominant language
Python
Stars
65
Forks
64
Avg merge
2d 13h
Merged PRs (30d)
4

Description

It would be nice if ``Mask.multiply`` was able to broadcast itself for arrays of higher dimensionality. A common use case is if extracting a circular region from a spectral cube.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Mask.multiply implementation and checking how it handles arrays with more than two dimensions. Confirm the expected broadcasting behavior for extracting a circular region from a spectral cube, then verify that higher-dimensional inputs produce the intended masked result.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.