Skip to content

Support "post sim calibration" in noise models#13

Merged
zatkins2 merged 4 commits intomainfrom
post_calibrate
Apr 18, 2025
Merged

Support "post sim calibration" in noise models#13
zatkins2 merged 4 commits intomainfrom
post_calibrate

Conversation

@zatkins2
Copy link
Copy Markdown
Collaborator

Simulations can now apply calibration factors on-the-fly using calibration products in sofind. There are 4 cases:

  1. User passes calibrate='auto' to get_sim (default) AND noise model config has calibrated: true: the calibrations and polarization efficiencies in the noise model config calibrations_subproduct will be applied to each super_qid in the sim
  2. User passes calibrate='auto' to get_sim (default) AND noise model config has calibrated: false: the sim is uncalibrated
  3. User passes calibrate=True: the calibrations subproduct passed to get_sim by the calibrations_subproduct kwarg is used, regardless of what is in the noise model config
  4. User passes calibrate=False: the sim is uncalibrated, regardless of what is in the noise model config

Note: in all cases, sims written to disk are uncalibrated. Sims loaded from disk therefore behave just like sims generated on-the-fly: after loading (or generation), the above calibration behavior is applied.

…cal, add calibrate and calibrations_subproduct kwargs to get_sim and change seed kwarg default to 'auto'. utils: remove get_mul_fact. io: add calibrations_subproduct and change meaning of calibrated
@zatkins2
Copy link
Copy Markdown
Collaborator Author

Tracks simonsobs/sofind#19

@zatkins2 zatkins2 merged commit f007ff2 into main Apr 18, 2025
@zatkins2 zatkins2 deleted the post_calibrate branch April 18, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant