本文整理汇总了Python中treedict.TreeDict.get_trap方法的典型用法代码示例。如果您正苦于以下问题:Python TreeDict.get_trap方法的具体用法?Python TreeDict.get_trap怎么用?Python TreeDict.get_trap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类treedict.TreeDict
的用法示例。
在下文中一共展示了TreeDict.get_trap方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: TreeDict
# 需要导入模块: from treedict import TreeDict [as 别名]
# 或者: from treedict.TreeDict import get_trap [as 别名]
Lower order functions sould rely entirely on data passed to them as configuration attributes."""
import numpy as np
import datetime
from treedict import TreeDict
# 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
示例2: TreeDict
# 需要导入模块: from treedict import TreeDict [as 别名]
# 或者: from treedict.TreeDict import get_trap [as 别名]
import datetime
from treedict import TreeDict
# International System of Units
qe=1.60217646e-19 # charge
me=9.10938188e-31 # electron mass
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'