Refactored obspy.signal.cpxtrace