def unwrap(plotar, ms2mappings):
for k in plotar.keys():
for d in plotar[k].keys():
# get a reference to the data set
dsref = plotar[k][d]
# get sorted data and unwrap the phases
(xvals, yvals) = zip(*sorted(zip(dsref.xval, dsref.yval), key=operator.itemgetter(0)))
yvals = numpy.unwrap(numpy.deg2rad(yvals))
dsref.xval = numpy.array(xvals)
dsref.yval = numpy.rad2deg(yvals)
评论列表
文章目录