simonsobs / simonsobs/sotodlib

Preprocessing routines fail if there is a dot in the config "keys"

Open
#1,405 3 comments 0 reactions 1 assignee View on GitHub

@mmccrackan is already working on this.

Since Oct 7, 2025.

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

Description

I found that preprocessing routines fail when there is a dot in one of the "keys" of the preprocessing config.

Example: I was trying to run preproc_or_load_group. One of my entries in the config looked like

name: "atomic_info"
process:
    noise_ratio_Q.rmean: rmeanQ

This caused an error on line 1118 https://github.com/simonsobs/sotodlib/blob/ff8363852eb76af4f610a117b6341b806c80d3a2/sotodlib/preprocess/preprocess_util.py#L1118

It seems the problem is actually in get_pcfg_check_aman which is trying to save noise_ratio_Q.rmean as an AxisManager with the single entry rmeanQ. It successfully does this but later when you try to save the aman, it thinks noise_ratio_Q.rmean is looking for a child of another aman noise_ratio_Q and throws an error.

I've done a workaround (swapping the key/value in my pair the order didn't matter) but thought best to flag.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.