本文整理汇总了Python中constants.Constants.FSS方法的典型用法代码示例。如果您正苦于以下问题:Python Constants.FSS方法的具体用法?Python Constants.FSS怎么用?Python Constants.FSS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类constants.Constants
的用法示例。
在下文中一共展示了Constants.FSS方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run_basis
# 需要导入模块: from constants import Constants [as 别名]
# 或者: from constants.Constants import FSS [as 别名]
def run_basis(FSS):
"""
Runs crosscorrlation vs wave plartes experiment.
"""
print 'Running diag basis with FSS', FSS.astype('|S4').tostring()
constants = Constants()
constants.FSS = FSS
experiment = Experiment(constants)
experiment.bench.setHWP(np.pi/8, np.pi/8)
experiment.bench.setLabMatrix('NBSNBS HWPHWP SS PBSPBS')
experiment.run('basis')
experiment.pcm.channel('D1D3').normalize(experiment.laser.pulse_width)
experiment.pcm.channel('D1D4').normalize(experiment.laser.pulse_width)
experiment.pcm.channel('D2D3').normalize(experiment.laser.pulse_width)
experiment.pcm.channel('D2D4').normalize(experiment.laser.pulse_width)
for key in experiment.pcm._channels:
x = experiment.pcm._channels[key].bin_edges
y = experiment.pcm._channels[key].counts
save.savedata(x, y, name = 'diag' + '_' + key + '_' + FSS.astype('|S4').tostring(), dir = 'auto_g2_v_fss_dephase2.5e10secondaty0.18')
g2 = experiment.pcm.channel('D1D3').g2
g2_cross = experiment.pcm.channel('D1D4').g2
return g2_cross