solid_waffle.multi_config

Routines to run the infrared flat correlations.

Classes

MultiConfig

Aggregates multiple completed IR characterization runs into one.

Functions

_values_match

Safely compares two values for equality, handling numpy arrays and plain Python types correctly.

Attributes

_ALLOWED_TO_DIFFER

Classes

MultiConfig

Aggregates multiple completed IR characterization runs into one.

Functions

_values_match(a, b)

Module Contents

_ALLOWED_TO_DIFFER[source]
_values_match(a, b)[source]
class MultiConfig(config_files, visible_run=False, verbose=False)[source]

Bases: solid_waffle.correlation_run.Config

Aggregates multiple completed IR characterization runs into one.

Inherits all attributes and methods from Config. See Config docstring for full details of inherited attributes and methods.

Parameters:
  • config_files (list of str) – Paths to the individual configuration files (one per run).

  • visible_run (bool, optional) – Passed through to each Config constructor.

  • verbose (bool, optional) – Print progress and mismatch details.

Raises:

ValueError – If fewer than two config files are supplied, or if any configuration mismatch is found between runs.

configs = [][source]
_combine_results()[source]

Combines full_info and is_good arrays across all runs.

Averages full_info across runs and builds an intersection good-pixel map where a super-pixel is only good if it is good in every run.

Return type:

None

classmethod from_summaries(config_files, visible_run=False, verbose=False)[source]

Build a MultiConfig from already-completed runs.

Loads full_info directly from each run’s _summary.txt instead of recomputing via fit_parameters. Use this when run_ir_all has already been called on every config file.

Parameters:
  • config_files (list of str) – Paths to the individual configuration files. Each must have a corresponding <outstem>_summary.txt on disk.

  • visible_run (bool, optional) – Passed through to each Config constructor.

  • verbose (bool, optional) – Print progress and mismatch details.

Returns:

instance – Combined configuration loaded from summary files.

Return type:

MultiConfig

Raises:

ValueError – If fewer than two config files are supplied, or if any configuration mismatch is found between runs.