edges_cal.tools

Tools to use in other modules.

Functions

as_readonly(x)

Get a read-only view into an array without copying.

bin_array(x[, size])

Simple unweighted mean-binning of an array.

dct_of_list_to_list_of_dct(dct)

Take a dict of key: list pairs and turn it into a list of all combos of dicts.

gauss_smooth(x, size[, decimate_at])

Smooth x with a Gaussian function, and reduces the size of the array.

get_data_path(pth)

Impute the global data path to a given input in place of a colon.

is_unit(unit)

Whether the given input is a recognized unit.

unit_convert_or_apply(x, unit[, in_place, warn])

Safely convert a given value to a quantity.

unit_converter(unit)

Return a function that will convert values to a given quantity.

vld_unit(unit[, equivalencies])

Attr validator to check physical type.

Classes

FrequencyRange(f, *, f_low, f_high[, ...])

Class defining a set of frequencies.