peng/wave_functions.py
def _operation(wave, desc, units, fpointer):
    """Perform generic operation on a waveform object."""
    ret = copy.copy(wave)
    ret.dep_units = units
    ret.dep_name = "{0}({1})".format(desc, ret.dep_name)
    ret._dep_vector = fpointer(ret._dep_vector)
    return ret
def _operation(wave, desc, units, fpointer):
    ret = copy.copy(wave)
    ret.dep_units = units
    ret.dep_name = "{0}({1})".format(desc, ret.dep_name)
    ret._dep_vector = fpointer(ret._dep_vector)
    return ret
def _operation ( wave , desc , units , fpointer ) : ret = copy . copy ( wave ) ret . dep_units = units ret . dep_name = "{0}({1})" . format ( desc , ret . dep_name ) ret . _dep_vector = fpointer ( ret . _dep_vector ) return ret
Perform generic operation on a waveform object.
Perform generic operation on a waveform object .