Open main menu

Changes

Tutorial for model free SBiNLab

434 bytes added, 12:24, 15 October 2017
<source lang="python">
# Python module imports.
import os, os.path, stat
# relax module imports.
from pipe_control import pipes
from auto_analyses.dauvergne_protocol import dAuvergne_protocol
import lib.io, lib.plotting.grace
# Analysis variables.
#####################
#DIFF_MODEL = ['local_tm', 'sphere', 'prolate', 'oblate', 'ellipsoid', 'final']
DIFF_MODEL = ['final']
# Read the state with the setup
# The results dir.
# Load the state with setup data.
state.load(state=var+'_ini.bz2', dir=results_dir, force=True)
# Define write out
out = 'result_06_check_intermediate'
write_results_dir = os.getcwd() + os.sep + out
# Read the pipe info
pipe.display()
pipe_name = pipes.cdp_name()
pipe_bundle = pipes.get_bundle(pipe_name)
# Run protocol
dAuvergne_protocol(pipe_name=pipe_name, pipe_bundle=pipe_bundle,
diff_model=DIFF_MODEL,
mc_sim_num=MC_NUM)
 
# Write a python "grace to PNG/EPS/SVG..." conversion script.
# Open the file for writing.
file_name = "grace2images.py"
file_path = lib.io.get_file_path(file_name, write_results_dir)
file = lib.io.open_write_file(file_path, force=True)
# Write the file.
lib.plotting.grace.script_grace2images(file=file)
file.close()
os.chmod(file_path, stat.S_IRWXU|stat.S_IRGRP|stat.S_IROTH)
</source>
|}
Trusted, Bureaucrats
1,382

edits