当前位置: 首页>>代码示例>>Python>>正文


Python TreeDict.trap_depth方法代码示例

本文整理汇总了Python中treedict.TreeDict.trap_depth方法的典型用法代码示例。如果您正苦于以下问题:Python TreeDict.trap_depth方法的具体用法?Python TreeDict.trap_depth怎么用?Python TreeDict.trap_depth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在treedict.TreeDict的用法示例。


在下文中一共展示了TreeDict.trap_depth方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: TreeDict

# 需要导入模块: from treedict import TreeDict [as 别名]
# 或者: from treedict.TreeDict import trap_depth [as 别名]
# International System of Units
qe=1.60217646e-19 # charge
me=9.10938188e-31 # electron mass
mp=1.67262158e-27 # proton mass

# Universal Parameters
save  = 1               
debug = TreeDict()
debug.import_data = 0
debug.get_trap = 1
debug.expand_field = 0
debug.trap_knobs = 0
debug.post_process_trap = 1
debug.pfit = 1
debug.soef = 1
debug.trap_depth = 1

#################################################################################
################################ import_data ####################################
#################################################################################
"""Includes project parameters relevant to import_data to build entire project in one script."""
simulationDirectory='C:\\Python27\\trap_simulation_software\\data\\text\\' # location of the text files
baseDataName = 'synthetic-pt' # Excludes the number at the end to refer to a set of text file simulations
projectName = 'pictures' # arbitrarily named by user
useDate = 1 # determine if simulation files are saved with our without date in name  
timeNow = datetime.datetime.now().date() # the present date and time 
fileName = projectName+'_'+str(timeNow)  # optional addition to name to create data structures with otherwise same name
if not useDate:
    fileName = projectName
simCount = [1,2]            # index of initial simulation and number of simulations; old nStart and nMatTot
dataPointsPerAxis = 5       # old NUM_AXIS 5, the number of data points along each axis of the cubic electrode potential
开发者ID:HaeffnerLab,项目名称:trap-sim-tools-python,代码行数:33,代码来源:old_project_parameters.py

示例2: TreeDict

# 需要导入模块: from treedict import TreeDict [as 别名]
# 或者: from treedict.TreeDict import trap_depth [as 别名]
mp=1.67262158e-27 # proton mass

# Universal Parameters
SQIP = 0   # for testing with G_Trap
CCT = 0    # for testing with CCT trap
fourth = 0 # for testing synthetic data
save  = 1  # saves data to python pickle
debug = TreeDict()
debug.import_data = 0  # displays potential of every electrode for every simulation
debug.get_trap = 0     # displays the newly connected electrode potentials, unless there was only one simulation
debug.expand_field = 1 # displays the first 3 orders of multipole coefficient values
debug.trap_knobs = 0   # displays plots of multipole controls
debug.post_process_trap = 0 # displays plots of electrode values, RF potential, and DC potential
debug.pfit = 0         # displays plots of pseudopotential and trap potential
debug.soef = 0         # displays progress in exact_saddle optimizations
debug.trap_depth = 0   # displays assorted values for the final trap depth

#################################################################################
################################ import_data ####################################
#################################################################################
"""Includes project parameters relevant to import_data to build entire project in one script."""
#simulationDirectory='C:\\Python27\\trap_simulation_software\\data\\text\\' # location of the text files
#baseDataName = 'G_trap_field_12232013_wr40_' # Excludes the number at the end to refer to a set of text file simulations
simulationDirectory = '/home/dylan/trap_simulations/old-lattice/'
baseDataName = 'lattice_3d_trap'
projectName = 'lattice_3d_trap' # arbitrarily named by user
useDate = 0 # determine if simulation files are saved with our without date in name  
timeNow = datetime.datetime.now().date() # the present date and time 
fileName = projectName+'_'+str(timeNow)  # optional addition to name to create data structures with otherwise same name
if not useDate:
    fileName = projectName
开发者ID:HaeffnerLab,项目名称:trap-sim-tools-python,代码行数:33,代码来源:project_parameters.py


注:本文中的treedict.TreeDict.trap_depth方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。