peng/wave_core.py
def _get_indep_vector(wave_a, wave_b):
    """Create new independent variable vector."""
    exobj = pexdoc.exh.addex(RuntimeError, "Independent variable ranges do not overlap")
    min_bound = max(np.min(wave_a.indep_vector), np.min(wave_b.indep_vector))
    max_bound = min(np.max(wave_a.indep_vector), np.max(wave_b.indep_vector))
    exobj(bool(min_bound > max_bound))
    raw_range = np.unique(np.concatenate((wave_a.indep_vector, wave_b.indep_vector)))
    return raw_range[np.logical_and(min_bound <= raw_range, raw_range <= max_bound)]
def _get_indep_vector(wave_a, wave_b):
    """Create new independent variable vector."""
    exobj = pexdoc.exh.addex(RuntimeError, "Independent variable ranges do not overlap")
    min_bound = max(np.min(wave_a.indep_vector), np.min(wave_b.indep_vector))
    max_bound = min(np.max(wave_a.indep_vector), np.max(wave_b.indep_vector))
    exobj(bool(min_bound > max_bound))
    raw_range = np.unique(np.concatenate((wave_a.indep_vector, wave_b.indep_vector)))
    return raw_range[np.logical_and(min_bound <= raw_range, raw_range <= max_bound)]
def _get_indep_vector ( wave_a , wave_b ) : exobj = pexdoc . exh . addex ( RuntimeError , "Independent variable ranges do not overlap" ) min_bound = max ( np . min ( wave_a . indep_vector ) , np . min ( wave_b . indep_vector ) ) max_bound = min ( np . max ( wave_a . indep_vector ) , np . max ( wave_b . indep_vector ) ) exobj ( bool ( min_bound > max_bound ) ) raw_range = np . unique ( np . concatenate ( ( wave_a . indep_vector , wave_b . indep_vector ) ) ) return raw_range [ np . logical_and ( min_bound <= raw_range , raw_range <= max_bound ) ]
Create new independent variable vector.
Create new independent variable vector .