本文整理汇总了Python中data_store.Relax_data_store.mode方法的典型用法代码示例。如果您正苦于以下问题:Python Relax_data_store.mode方法的具体用法?Python Relax_data_store.mode怎么用?Python Relax_data_store.mode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类data_store.Relax_data_store
的用法示例。
在下文中一共展示了Relax_data_store.mode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Relax_data_store
# 需要导入模块: from data_store import Relax_data_store [as 别名]
# 或者: from data_store.Relax_data_store import mode [as 别名]
# relax module imports.
from data_store import Relax_data_store; ds = Relax_data_store()
from status import Status; status = Status()
# Path of the alignment data and structure.
DATA_PATH = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'align_data'+sep+'CaM'
STRUCT_PATH = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'structures'
# Create the data pipe.
self._execute_uf('rdc', 'N-state', uf_name='pipe.create')
# Set the mode, if not specified by the system test.
if not hasattr(ds, 'mode'):
ds.mode = 'all'
# The data to use.
if hasattr(ds, 'rand') and ds.rand:
rdc_file = 'synth_rdc_rand'
pcs_file = 'synth_pcs_rand'
else:
rdc_file = 'synth_rdc'
pcs_file = 'synth_pcs'
# Load the CaM structure.
self._execute_uf(uf_name='structure.read_pdb', file='bax_C_1J7P_N_H_Ca', dir=STRUCT_PATH)
# Load the spins.
self._execute_uf(uf_name='structure.load_spins')