Tim,
> This 'Project invalid' error is thrown up by AnalysisPopup catching
> exceptions from Analysis.py initProject(), although because of the popup
> wrapper we can't see exactly where it is failing.
>
> To get the full error try calling initProject directly after having
> loaded the project. At the python command line type:
>
> >>> from ccpnmr.analysis.Analysis import Analysis
> >>> Analysis.initProject(top,top.project)
>
> Let me know what you find.
Can't seem to do that if I open the project with formatConverter:
python -i
$CCPNMR_TOP_DIR/ccpnmr1.0/python/ccpnmr/format/gui/FormatConverter.py
[Quit formarConverter main window]
>>> from ccpnmr.analysis.Analysis import Analysis
>>> Analysis.initProject(top,top.project)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: unbound method initProject() must be called with Analysis
instance as first argument (got FormatConverter instance instead)
>>>
If I do it in analysis after the popup error:
>>> from ccpnmr.analysis.Analysis import Analysis
>>> Analysis.initProject(top,top.project)
Warning: spectrum "ansig" has no data file.
Warning: spectrum "ansig" has no data file.
Warning: spectrum "ansig" has no data file.
Warning: spectrum "ansig" has no data file.
Warning: spectrum "ansig" has no data file.
Warning: spectrum "ansig" has no data file.
Warning: spectrum "ansig" has no data file.
Warning: spectrum "ansig" has no data file.
Warning: spectrum "ansig" has no data file.
making Atom Sets and Mappings for residue SER 2
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
line 102, in initProject
self.initMolSystems()
File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
line 313, in initMolSystems
self.initMolSystemChain(chain)
File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/Analysis.py",
line 321, in initMolSystemChain
makeResidueAtomSets(residue)
File
"/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/MoleculeBasic.py",
line 282, in makeResidueAtomSets
makeAtomSet(residue,name,(atom,),elementSymbol,'simple')
File
"/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/MoleculeBasic.py",
line 131, in makeAtomSet
makeAtomSetMapping(guiName,residue,(atomSet,),elementSymbol,mappingType,
resonances=resonances)
File
"/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/MoleculeBasic.py",
line 159, in makeAtomSetMapping
chemCompLocation=chemComp.location,chemCompMolType=molType,elementSymbol=elementSymbol)
File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/api/Analysis.py", line
612, in __init__
setattr(self, key, value)
File "/usr/local/ccpnmr/ccpnmr1.0/python/ccpnmr/api/Analysis.py", line
821, in setChainCode
raise ApiError('Word constraint no_white_space violated by value %s' %
`value`)
memops.general.Implementation.ApiError: Word constraint no_white_space
violated by value ' '
>>>
Brian
--
Dr. Brian O. Smith ---------------------- B.Smith at bio.gla.ac.uk
Division of Biochemistry & Molecular Biology,
Institute Biomedical & Life Sciences,
Joseph Black Building, University of Glasgow, Glasgow G12 8QQ, UK.
Tel: 0141 330 5167/6459 Fax: 0141 330 8640
|