simonsobs / simonsobs/sotodlib

get_obs(meta=meta, samples=something) complains

Open
#802 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
19
Forks
23
Avg merge
1d 5h
Merged PRs (30d)
14

Description

It should be allowed to restrict the load, using samples, as long as the range is a subset of meta.samps.

https://github.com/simonsobs/sotodlib/blob/0457caddd0802542d9bf38dbbe664fa574c77de8/sotodlib/core/context.py#L423

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start at sotodlib/core/context.py around line 423 and trace how get_obs handles meta and samples. Reproduce the complaint with a samples range that is a subset of meta.samps; the fix is done when that restricted load is accepted without error while invalid ranges remain rejected.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.