def cof2phase(z):
    # z = amp*exp(phase(i) so phase is the arg(z)
    return np.arctan2(z.imag, z.real)


##############################
# data preperation functions #
##############################
For a MemoryHandler, flushing means just sending the buffered
dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/process/proc_lp.py/cof2phase--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/logging/handlers.py/MemoryHandler.flush