Hello,
Somehow some experiment has not been initialised correctly. It is valid
as far as the CCPN data model is concerned (expDimRef.unit is not
mandatory) but not as far as Analysis is concerned. I'm not sure how this
happened but it's not good, and it's quite likely the rest of the
experiment is no good as well. The best option is to delete that
experiment. Now one ought to be able to do this using a script without
starting up Analysis. But I suspect the easiest option is to edit the NMR
XML file. If you tar gzip up the file and email me (off list) then that
might be the fastest way to sort it. In general we ignore missing
spectrum data files but I'm not sure how easy it would be to ignore
generally messed up spectrum (or experiment) objects, we haven't tried to
implement that. If you've done only one save that caused this problem
then the *.xml.bak file ought to be able to be copied over to the
corresponding *.xml file and it would all work (but lose everything done
since that *.xml.bak file was saved). So that is an alternative strategy.
Or the *.xml file in the backup directory if you have autobackup on and it
happens to be newer than the corresponding *.xml.bak file in the ordinary
project directory. Here the relevant *.xml.bak file is in the
PROJECT_DIR/ccp/nmr/Nmr/ directory and the relevant auotbackup file would
normally be in PROJECT_DIR_backup/ccp/nmr/Nmr. (But if you do this then
first do a tar gzip of the project directory before you start mucking
around just in case.)
Wayne
On Mon, 25 Jun 2012, Ian C. Brett wrote:
> Hello,
>
> I have been successfully using CCPN for 18 months with no problems. However, I have recently been encountering an error opening existing CCPN projects after reading in new spectra. The error is "Project invalid, please quit, fix, and re-start:KeyError: ('point', 'None')." The relevant X11 window errors are pasted below. Searching the mailing list, I found one other case like this, but the resolution was unclear. I am running v2.1.5, I have tried the updateAll script and it says there are no updates at server location (but I think there's a v2.2.x, no?). I am using a MacBook Pro, OS X 10.6.8.
>
> The error has occurred on multiple project files when I read in Bruker '2rr' spectra, specifically T1/T2 relaxation datasets. Interestingly, if I read in the ucsf version of the spectra, I don't get an error (I was doing this previously, but found that the scaling of the spectrum is incorrect). I have backups, so I could always load in the backup file, but since this has happened 3 different times, I'd like to find out what is going wrong and how to fix it if possible.
>
> So, my questions are:
>
> Can I 'force' a project to open, ignoring problem spectra?
> Is there an easy way to prevent this from happening (am I doing something wrong during spectrum import)?
> Is there an easy way to edit the existing 'broken' XML project file to 'revert' to the working file (in ccpnmr/PROJ_DIR/ccp/general/DataLocation/?)? Theoretically, I can just delete any references to the newly opened spectra, right?
>
>
> Thanks in advance for any and all help/advice you could offer!
>
> With best regards,
> Ian
>
> X11 window messages:
> KeyError: ('point', 'None')
> File "/Users/ianbrett/ccpnmr/ccpnmr2.1/python/memops/editor/OpenProjectPopup.py", line 208, in apply
> self.callback(self.project)
> File "/Users/ianbrett/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py", line 1503, in initProject
> Analysis.initProject(self, project)
> File "/Users/ianbrett/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/Analysis.py", line 291, in initProject
> self.initSpectra()
> File "/Users/ianbrett/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/Analysis.py", line 1055, in initSpectra
> self.checkSpectrumContourRange(spectrum)
> File "/Users/ianbrett/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/Analysis.py", line 1072, in checkSpectrumContourRange
> valRange = [unitConvert[('point', expDimRef.unit)](1.0, dataDimRef),
>
|