<source lang="python">
# Taken from the relax disp manual, section 10.6.1 Dispersion script mode - the sample script
# Python module imports.
from os import sep
# relax module imports.
from auto_analyses.relax_disp import Relax_disp
# Analysis variables.
#####################
# The dispersion models.
MODELS = ['R2eff', 'No Rex', 'LM63', 'CR72', 'IT99', 'NS 2-site expanded']
# The grid search size (the number of increments per dimension).
GRID_INC = 21
# The number of Monte Carlo simulations to be used for error analysis at the end of the analysis.
MC_NUM = 10
# The model selection technique to use.
MODSEL = 'AIC'
# Experiment settings
#set_dir = "spectrometer_data_processed"
set_dir = None
# Set up the data pipe.
#######################
# Create the data pipe.
pipe_name = 'base pipe'
# Set the spectra experimental properties/settings.
script(file='relax_3_spectra_settings.py', dir=set_dir)
# Auto-analysis execution.
##########################
# Save the program state before run.
# This state file will also be used for loading, before a later cluster/global fit analysis.
state.save('ini_setup', force=True)
# Do not change!
Relax_disp(pipe_name=pipe_name, pipe_bundle=pipe_bundle, models=MODELS, grid_inc=GRID_INC, mc_sim_num=MC_NUM, modsel=MODSEL)
</source>
And the just start relax with
<source lang="bash">
relax_disp relax_1_ini.py# Or with logfilerelax_disp relax_1_ini.py -l logfilerelax_1_ini.txtlog
</source>