本文整理汇总了Python中data_store.Relax_data_store.diff_dir方法的典型用法代码示例。如果您正苦于以下问题:Python Relax_data_store.diff_dir方法的具体用法?Python Relax_data_store.diff_dir怎么用?Python Relax_data_store.diff_dir使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类data_store.Relax_data_store
的用法示例。
在下文中一共展示了Relax_data_store.diff_dir方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Relax_data_store
# 需要导入模块: from data_store import Relax_data_store [as 别名]
# 或者: from data_store.Relax_data_store import diff_dir [as 别名]
# Python module imports.
from os import sep
# relax module imports.
from data_store import Relax_data_store; ds = Relax_data_store()
from status import Status; status = Status()
# The frequency list.
FRQ = [500, 600, 700, 800]
# Stand alone operation.
if not hasattr(ds, 'diff_type'):
ds.diff_type = 'ellipsoid'
if not hasattr(ds, 'diff_dir'):
ds.diff_dir = 'ellipsoid'
# A data pipe.
pipe.create('back_calc', 'mf')
# Path of the files.
path = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'diffusion_tensor'+sep+ds.diff_dir
# Load the sequence.
sequence.read('NOE.500.out', dir=path, res_num_col=1)
# Load the original relaxation data.
for i in range(len(FRQ)):
relax_data.read(ri_id='R1_%i'%FRQ[i], ri_type='R1', frq=FRQ[i]*1e6, file='R1.%s.out'%str(int(FRQ[i])), dir=path, res_num_col=1, data_col=2, error_col=3)
relax_data.read(ri_id='R2_%i'%FRQ[i], ri_type='R2', frq=FRQ[i]*1e6, file='R2.%s.out'%str(int(FRQ[i])), dir=path, res_num_col=1, data_col=2, error_col=3)
relax_data.read(ri_id='NOE_%i'%FRQ[i], ri_type='NOE', frq=FRQ[i]*1e6, file='NOE.%s.out'%str(int(FRQ[i])), dir=path, res_num_col=1, data_col=2, error_col=3)
示例2: Relax_data_store
# 需要导入模块: from data_store import Relax_data_store [as 别名]
# 或者: from data_store.Relax_data_store import diff_dir [as 别名]
"""Script for testing diffusion tensor optimisation."""
# Python module imports.
from numpy import array, float64
from os import sep
# relax module imports.
from data_store import Relax_data_store; ds = Relax_data_store()
from status import Status; status = Status()
# Stand alone operation.
if not hasattr(ds, 'diff_type'):
ds.diff_type = 'spheroid'
if not hasattr(ds, 'diff_dir'):
ds.diff_dir = ds.diff_type
# A data pipe.
pipe.create('diff_opt', 'mf')
# Path of the files.
path = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'diffusion_tensor'+sep+ds.diff_dir
# Load the sequence.
sequence.read('NOE.500.out', dir=path, res_num_col=1)
# Load a PDB file.
structure.read_pdb('uniform.pdb', dir=path)
# Set the spin names.
spin.name(name='N')