firecrown.utils

firecrown.utils#

Some utility functions for patterns common in Firecrown.

Functions

compare_optional_arrays

Compare two arrays, allowing for either or both to be None.

save_to_sacc

Save a data vector into a (new) SACC object, copied from sacc_data.

upper_triangle_indices

Returns the upper triangular indices for an (n x n) matrix.