jakesylvestre / cing

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

CING fails to read CCPN project specifically for one DOCR project #227

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Read in this NRG DOCR CCPN project. Other projects work fine.

What is the expected output? What do you see instead?
jd:stella/cingTmp/ cing -n 2kqt --initCcpn 2kqt --ipython
================================================================================
=================
=====
| CING: Common Interface for NMR structure Generation version 0.9 (r710)        
AW,JFD,GWV 2004-2009 |
================================================================================
=================
=====
User: jd              on: stella.cmbi.umcn.nl (darwin/32bit)            at: Thu 
Feb 25 10:35:41 2010
==> Importing data from Ccpn project "2kqt"
CING started at : Thu Feb 25 10:35:37 2010
CING stopped at : Thu Feb 25 10:35:42 2010
CING took       : 5.213 s

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 647, in main
    project.initCcpn(ccpnFolder=options.initCcpn)
  File "/Users/jd/workspace35/cing/python/cing/PluginCode/Ccpn.py", line 2272, in initCcpn
    if not ccpn.importFromCcpn(modelCount = modelCount):
  File "/Users/jd/workspace35/cing/python/cing/PluginCode/Ccpn.py", line 331, in importFromCcpn
    if not self.importFromCcpnMolecule(modelCount = modelCount):
  File "/Users/jd/workspace35/cing/python/cing/PluginCode/Ccpn.py", line 409, in importFromCcpnMolecule
    if not self._getCcpnNmrProject():
  File "/Users/jd/workspace35/cing/python/cing/PluginCode/Ccpn.py", line 312, in _getCcpnNmrProject
    self.ccpnNmrProject = ccpnNmrProject
UnboundLocalError: local variable 'ccpnNmrProject' referenced before assignment

In context:
        if self.ccpnProject.currentNmrProject:
            ccpnNmrProject = self.ccpnProject.currentNmrProject
        elif self.ccpnProject.nmrProjects:
            ccpnNmrProject = self.ccpnProject.findFirstNmrProject()
        self.ccpnNmrProject = ccpnNmrProject

Analysis also fails to read the project with message:

Re-trying, skipping cached TopObjects:
Error during Exo link dereferencing. Object was:  <ccp.molecule.MolSystem.Chain 
['2kqt', 'E']>
values were:  ['2kqt_user_2010-02-11-11-55-11-713_00001']
tag name was:  molecule
Error loading file for:  <ccp.molecule.MolSystem.MolSystem ['2kqt']>
Reading:  <open file 
'/Users/jd/tmp/cingTmp/2kqt/ccp/molecule/MolSystem/2kqt+2kqt_user_2010-02-11-11-
54-40-169_00001.xml', mode 'r' at 
0x53c45c0>
Last xml tag read:  _StorageUnit
Parser state was:  postprocessing data
Object stack was empty

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

GoogleCodeExporter commented 8 years ago
This issue solved itself.
http://nmr.cmbi.ru.nl/NRG-CING/data/kq/2kqt/2kqt.cing 
looks fine.

Original comment by jurge...@gmail.com on 22 Sep 2010 at 2:34