jakesylvestre / cing

Automatically exported from code.google.com/p/cing
0 stars 0 forks source link

CING failed validation because of simple bad print statement. #222

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
From Wim I received a proprietary file that failed with the below traceback.
This is for a second version of a project without ligand.

What is the expected output? What do you see instead?
Traceback (most recent call last):
  File "/Users/jd/workspace35/cing/python/cing/main.py", line 793, in <module>
    main()
  File "/Users/jd/workspace35/cing/python/cing/main.py", line 755, in main
    execfile(scriptFile, globals() )
  File "/Users/jd/workspace35/cing/python/cing/Scripts/doValidateiCing.py", line 36, in 
<module>
    doProcheck = doProcheck, doWhatif=doWhatif, doWattos=doWattos)
  File "/Users/jd/workspace35/cing/python/cing/core/classes.py", line 979, in validate
    return validate(self, ranges = ranges, parseOnly = parseOnly, htmlOnly = htmlOnly, 
doProcheck = doProcheck, doWhatif = doWhatif, doWattos = doWattos)
  File "/Users/jd/workspace35/cing/python/cing/core/validate.py", line 125, in validate
    project.runCingChecks(ranges=ranges)
  File "/Users/jd/workspace35/cing/python/cing/core/classes.py", line 982, in runCingChecks
    return runCingChecks(self, ranges = ranges)
  File "/Users/jd/workspace35/cing/python/cing/core/validate.py", line 86, in runCingChecks
    project.validateRestraints( toFile=True)
  File "/Users/jd/workspace35/cing/python/cing/core/classes.py", line 964, in validateRestraints
    return validateRestraints(self, toFile = toFile)
  File "/Users/jd/workspace35/cing/python/cing/core/validate.py", line 609, in validateRestraints
    msg += sprintf( '%s\n', formatList( drl[0:min(len(drl),30)] ) )
  File "/Users/jd/workspace35/cing/python/cing/Libs/NTutils.py", line 3454, in formatList
    result.append(fmt%element.format())
  File "/Users/jd/workspace35/cing/python/cing/core/classes.py", line 2407, in format
    val2Str(self.cav, "%6.1f", 6),
  File "/Users/jd/workspace35/cing/python/cing/Libs/NTutils.py", line 1170, in __getattr__
    raise AttributeError( '"%s" not found.' % attr )
AttributeError: "cav" not found.

Original issue reported on code.google.com by jurge...@gmail.com on 8 Feb 2010 at 9:07

GoogleCodeExporter commented 8 years ago
Fixed by improving initialization of the Dihedral angle restraint in revision 
719.
I'll update iCing to 719 when it's free.

Original comment by jurge...@gmail.com on 8 Feb 2010 at 9:35

GoogleCodeExporter commented 8 years ago
Updated iCing.

Original comment by jurge...@gmail.com on 8 Feb 2010 at 10:30