本文整理匯總了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)