Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

mask_query.flag_positions treats every negative map value as off-coverage

Open Beginner friendly
#914 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Start at shapepipe.utilities.mask_query.flag_positions and inspect how the map exposes its off-coverage sentinel. Verify the logic distinguishes that sentinel from other negative values, then run the relevant existing tests and add coverage for a legitimate negative map value; done means only off-coverage is treated as clean.

Written by the indexing model from the issue text.

Description

shapepipe.utilities.mask_query.flag_positions zeroes every negative integer map value, not only healsparse's off-coverage sentinel, so a map that legitimately carried negative values would read as clean. Correct today (UNIONS maps carry non-negative bits), but the contract off-coverage-is-clean holds only by that accident; compare against the map's sentinel explicitly. Found while writing that contract (#875).

Dominant language
Python
Stars
18
Forks
14
Avg merge
1d 4h
Merged PRs (30d)
18

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CosmoStat/shapepipe

All issues in CosmoStat/shapepipe

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.