google-code-export / nmrrestrntsgrid

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

FC crashes on namingSystemHits #223

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Model read finished. Duration 2.0064740181
Model validity check skipped
Removing existing project...
Doing 1brv...
  Using preset values...
Traceback (most recent call last):
  File "/Users/jd/workspace34/recoord/python/recoord2/msd/linkNmrStarData.py", line 680, in 
<module>
    LinkNmrStarData(sys.argv)
  File "/Users/jd/workspace34/ccpn/python/msd/adatah/Generic.py", line 87, in __init__
    self.catchError(raiseError,timeFlag)
  File "/Users/jd/workspace34/ccpn/python/msd/adatah/Generic.py", line 80, in __init__
    self.runSpecific()
  File "/Users/jd/workspace34/recoord/python/recoord2/msd/linkNmrStarData.py", line 169, in 
runSpecific
    self.readNmrStarFile(inNmrStarFile, version = self.originalNmrStarVersion, maxNum = 
self.numModelsToRead)
  File "/Users/jd/workspace34/ccpn/python/msd/adatah/NmrStar.py", line 37, in 
readNmrStarFile
    self.formatObjectDict[formatKey].readProject(nmrStarFile, entry = self.entry, molSystem = 
self.molSystem, strucGen = self.strucGen, 
useOriginalChainCode = True, linkAtoms = False, version = version, chemCompPath 
= 
chemCompArchiveDataDir, minimalPrompts = 1, 
**localKeywds)
  File "/Users/jd/workspace34/ccpn/python/ccpnmr/format/converters/DataFormat.py", line 
934, in readProject
    self.getFullProject(fileName,**keywds)
  File "/Users/jd/workspace34/ccpn/python/ccpnmr/format/converters/NmrStarFormat.py", line 
607, in getFullProject
    self.readCoordinates(molSystem = molSystem, strucGen = strucGen, minimalPrompts = 
self.minimalPrompts, version = self.version, 
**localKeywds)
  File "/Users/jd/workspace34/ccpn/python/ccpnmr/format/converters/DataFormat.py", line 
1305, in readCoordinates
    self.autoSelectCoordNamingSystem()
  File "/Users/jd/workspace34/ccpn/python/ccpnmr/format/converters/DataFormat.py", line 
12785, in autoSelectCoordNamingSystem
    highestMatch = namingSystemHits[0] * 100.0 / numAtoms
IndexError: list index out of range

I have tried to debug it but it's too complex for me to debug this week. Do you 
have time Wim?
We might just have to publish it without the latest FC updates.
Cheers

Original issue reported on code.google.com by jurge...@gmail.com on 4 Aug 2009 at 8:34

GoogleCodeExporter commented 9 years ago
OK fixed. This problem occured because I made a slight change in an if statement
somewhere deep down in the code that meant that the chain mappings were being 
reset
when reading the coordinates (which didn't use to happen).

Update from SF repository:

python/ccpnmr/format/

directory.

Original comment by wfvran...@gmail.com on 5 Aug 2009 at 3:59

GoogleCodeExporter commented 9 years ago
Great, this works.

Original comment by jurge...@gmail.com on 5 Aug 2009 at 4:30