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


Python Relax_data_store.add方法代码示例

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


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

示例1: Relax_data_store

# 需要导入模块: from data_store import Relax_data_store [as 别名]
# 或者: from data_store.Relax_data_store import add [as 别名]
# relax script for regenerating the 'peak_heights_T2_ncyc1.bz2' saved state.  This is necessary when
# the saved state becomes incompatible with relax during development.

# Python module imports.
from os import sep

# The relax data store.
from data_store import Relax_data_store; ds = Relax_data_store()
from status import Status; status = Status()


# Add a data pipe to the data store.
ds.add(pipe_name='rx', pipe_type='relax_fit')

# Load the Lupin Ap4Aase sequence.
sequence.read(file="Ap4Aase.seq", dir=status.install_path + sep+'test_suite'+sep+'shared_data', res_num_col=1, res_name_col=2)

# Name the spins so they can be matched to the assignments.
spin.name(name='N')

# Read the peak heights.
spectrum.read_intensities(file="T2_ncyc1_ave.list", dir=status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'curve_fitting', spectrum_id='0.0176')

# Save the state.
state.save('basic_heights_T2_ncyc1', force=True)
开发者ID:belisario21,项目名称:relax_trunk,代码行数:27,代码来源:create_peak_heights_T2_ncyc1.py

示例2: Relax_data_store

# 需要导入模块: from data_store import Relax_data_store [as 别名]
# 或者: from data_store.Relax_data_store import add [as 别名]
# relax script for regenerating the 'basic_single_pipe.bz2' saved state.  This is for when the saved
# state becomes incompatible with relax.

# The relax data store.
from data_store import Relax_data_store; ds = Relax_data_store()


# Add a data pipe to the data store.
ds.add(pipe_name='orig', pipe_type='mf')

# Add a single object to the 'orig' data pipe.
ds['orig'].x = 1

# Add a single object to the storage object.
ds.y = 'Hello'

# Save the state.
state.save('basic_single_pipe', force=True)
开发者ID:belisario21,项目名称:relax_trunk,代码行数:20,代码来源:create_state_basic_single_pipe.py


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