#!/usr/bin/env python

# A python version of wilson.exam, using the CCP4Dispatchers

import os, sys
from CCP4Dispatchers import wilson
from string import Template

d=wilson.Dispatcher()

cmd = Template("hklin $CEXAM/toxd/toxd.mtz").substitute(os.environ)
d.set_cmd_args(cmd)

d.set_keywords("""title Any old title will do
resolution 40.0 2.0
rscale 4.0 2.0
wilson observed
nresidues   59
LABIN  FP=FTOXD3 SIGFP=SIGFTOXD3 
""")
d.call()
for line in d.stdout_data: print line
sys.exit(d.call_val)

