本文整理匯總了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