Open main menu

Changes

Add the following python relax script file to the relax directory.
'''relax_5_ini_clusterrelax_5_cluster.py'''
<source lang="python">
"""Taken from the relax disp manual, section 10.6.1 Dispersion script mode - the sample script.
To run the script, simply type:
$ ../../../../../relax relax_5_ini_clusterrelax_5_cluster.py --tee relax_5_ini_clusterrelax_5_cluster.log
"""
# Save the program state before run.
state.save('ini_setup_cluster.bz2', force=True)
</source>
'''relax_6_cluster.py'''<source lang="python">import osfrom auto_analyses.relax_disp import Relax_disp################### Run cluster analysis# Load the initial state setupstate.load(state='ini_setup_cluster.bz2')################
# Set settings for run.
results_directory = os.path.join(os.getcwd(),"model_clustering_analyt")
pre_run_directory = os.path.join(os.getcwd(),"model_sel_analyt")
pipe_name = 'base pipe'; pipe_bundle = 'relax_disp'
MODELS = ['R2eff', 'No Rex', 'CR72TSMFK01']GRID_INC = 21; MC_NUM = 1050; MODSEL = 'AIC'
# Execute
And the just start relax with
<source lang="bash">
relax_disp relax_5_ini_clusterrelax_5_cluster.py -t log_relax_5_ini_cluster.logrelax_disp relax_6_cluster.py -t log_relax_6_clusterlog_relax_5_cluster.log
</source>
= See also =
[[Category:Tutorials]]
Trusted, Bureaucrats
1,382

edits