simonsobs / simonsobs/sotodlib

AxisManager.wrap axis_map arg vs. AxisManager._assignments format

Open
#889 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

The "axis_map" argument is perhaps too restrictive -- it should be extended to accept:

  • a map that includes Nones, e.g. [(0, 'dets'), (1, None)]
  • a simple list, e.g. ['dets', None].

It would also be nice if wrapping an AxisManager, and specifying axis_map=whatever-it's-going-to-be-after-wrapping-anyway, worked without complaint, too.

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 by locating AxisManager.wrap and inspecting the _assignments format and current axis_map validation. Verify how mapped axes containing None, simple lists, and an axis_map matching the wrapped AxisManager are handled; done means all three forms are accepted without complaint.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.