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


Python TreeDict.import_data方法代码示例

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


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

示例1: TreeDict

# 需要导入模块: from treedict import TreeDict [as 别名]
# 或者: from treedict.TreeDict import import_data [as 别名]
"""This script contains the parameters for developing the project trapping field.
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
开发者ID:HaeffnerLab,项目名称:trap-sim-tools-python,代码行数:33,代码来源:old_project_parameters.py

示例2: TreeDict

# 需要导入模块: from treedict import TreeDict [as 别名]
# 或者: from treedict.TreeDict import import_data [as 别名]
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
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/'
开发者ID:HaeffnerLab,项目名称:trap-sim-tools-python,代码行数:33,代码来源:project_parameters.py


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