examples.pytest.test_detwin.test_truncate2
Tags | |
---|---|
Last edited time |
*** truncate.exam failed
>>>> CCIF signal CCIF_NOITEM (severity: Warning) <<<<
(Raised in ccif_output_fmt)
Data name or category "_exptl_crystal.percent_solvent" not defined in dictionary
Not setting an output format string
>>>> CCIF signal CCIF_CXTRANGE (severity: SEVERE ERROR/FATAL) <<<<
(Raised in ccif_get_value)
Context -1 out of range (must be between 0 and 20 inclusive)
unique.exam,unique-free-R,vecref.exam,vectors.exam,waterpeaks,watpeak.exam,watertidy-3shells,wilson.exam,hbond.exam,mat2symop.exam,symop2mat.exam,matthews_coef.exam,detwin.exam
*** detwin.exam failed
>>>> CCIF signal CCIF_NOITEM (severity: Warning) <<<<
(Raised in ccif_output_fmt)
Data name or category "_exptl_crystal.percent_solvent" not defined in dictionary
Not setting an output format string
>>>> CCIF signal CCIF_CXTRANGE (severity: SEVERE ERROR/FATAL) <<<<
(Raised in ccif_get_value)
Context -1 out of range (must be between 0 and 20 inclusive)
=================================== FAILURES ===================================
________________________________ test_truncate2 ________________________________
def test_truncate2():
import subprocess
import os
executableName = 'truncate'
cexam = os.getenv('CEXAM')
ccp4_scr = os.getenv('CCP4_SCR')
assert cexam is not None
assert ccp4_scr is not None
assert os.path.exists(cexam)
assert os.path.exists(ccp4_scr)
# curDir = os.getcwd()
# os.chdir(ccp4_scr)
if not os.path.exists( ccp4_scr + os.sep + '1vr7_lr_dt.mtz'):
test_detwin1()
params = ''
cmd = [executableName]
cmd += ['hklin', ccp4_scr + os.sep + '1vr7_lr_dt.mtz']
cmd += ['hklout', ccp4_scr + os.sep + '1vr7_lr_trunc.mtz']
params += 'labin IMEAN=IMEAN_detw SIGIMEAN=SIGIMEAN_detw' + os.linesep
params += 'nresidue 353' + os.linesep
execProcess = subprocess.Popen(cmd, stdout=subprocess.PIPE, stdin=subprocess.PIPE)
for param in params:
execProcess.stdin.write(bytearray(param, 'utf-8'))
execProcess.stdin.flush()
execProcess.stdin.close()
execSTDOUT = execProcess.stdout.readlines()
execProcess.stdout.close()
# for line in execSTDOUT:
# print line)
exitCode = execProcess.wait()
# os.chdir(curDir)
> assert exitCode == 0 # exit code reports success
E assert 1 == 0
../examples/pytest/test_detwin.py:99: AssertionError