本文整理汇总了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)
示例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)