simonsobs / simonsobs/sotodlib

Conversion to np.float64 failing in sim_focalplane.py

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

@tskisner is already working on this.

Since May 5, 2025.

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

Description

Values in for positions, pol angles, quaternions, etc. produced in simulating the focalplane do not seem to be converting to floats correctly. Instead they take the form in the toml files as "np.float64(-0.004668524928094997)". When the focal plane visualization tools in sotodlib and s4sim try to convert these into floats from the toml files, they cannot convert the value into a float.

An example of the error when running so_hardware_plot on NERSC:

Image

An excerpt from the toml file:

Image

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.