Right, it turns out the string wasn't "" but " " so I needed to add
something extra to strip the string before it is checked. So that should
work now (it opened your project ok here, anyway). (With the latest
update.)
Wayne
On Wed, 5 Nov 2008, Johnny Croy wrote:
> Wayne,
>
> Here's a bit more information on what I did to screw things up. I
> opened up my converted project and I got errors telling me that it
> couldn't find certain spectra. However, analysis fired up and I
> didn't have any problems. I then saved the project in 2.0 and tried
> to reopen. Then I got a pop-p window saying "edit project data
> paths". The missing spectra are highlighted in orange. I then click
> on the red x at the bottom of the pop-up window and then the error
> pops up. I cant attach the tarball (16 MB). Its a big project that
> contains all of my collected NMR data. Anyway to send it via FTP/SFTP
> to you?
>
> J
>
>
> On Nov 5, 2008, at 10:34 AM, Wayne Boucher wrote:
>
> > Hmmm, that error message doesn't make sense to me now. The "if level"
> > should explictly stop empty strings getting to the float(). Can you
> > send
> > me your project directory (not the spectra), and I'll look at that.
> >
> > Thanks, Wayne
> >
> > On Wed, 5 Nov 2008, Johnny Croy wrote:
> >
> >> Wayne,
> >>
> >> Still getting the same error. Here is the traceback after I have
> >> upgraded.
> >>
> >>>>> Warning: spectrum (T1_b_0, nmrPipe): data file None not accessible
> >> ValueError: empty string for float()
> >> File "/Applications/ccpnmr/ccpnmr2.0/python/memops/editor/
> >> OpenProjectPopup.py", line 204, in apply
> >> self.callback(self.project)
> >> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/
> >> AnalysisPopup.py", line 997, in initProject
> >> Analysis.initProject(self, project)
> >> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/
> >> Analysis.py", line 264, in initProject
> >> self.initSpectra()
> >> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/
> >> Analysis.py", line 900, in initSpectra
> >> self.initPeakList(peakList, initialising=True)
> >> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/
> >> Analysis.py", line 1679, in initPeakList
> >> view = WindowBasic.getSpectrumWindowView(window, spectrum)
> >> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/core/
> >> WindowBasic.py", line 384, in getSpectrumWindowView
> >> analysisSpectrum = Util.getAnalysisSpectrum(spectrum)
> >> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/core/
> >> Util.py", line 161, in getAnalysisSpectrum
> >> setupAnalysisSpectrum(analysisSpectrum)
> >> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/core/
> >> Util.py", line 174, in setupAnalysisSpectrum
> >> levels = getSpectrumContourLevels(spectrum)
> >> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/core/
> >> Util.py", line 739, in getSpectrumContourLevels
> >> levels = [float(level) for level in
> >> levels.split(spectrum_contour_separator) if level]
> >> logout
> >>
> >> On Nov 5, 2008, at 1:59 AM, Wayne Boucher wrote:
> >>
> >>> Right, hopefully that is fixed now.
> >>>
> >>> This error was finally picked up because of fixing that problem for
> >>> Vicky
> >>> yesterday. There might be other similar problems now cropping up.
> >>> Also,
> >>> I forgot to metion that I have now set it up so that old appData
> >>> that is
> >>> v1 specific and not needed in v2 should now be deleted if it is
> >>> accessed
> >>> (but that might not happen if you've already saved a project in v2).
> >>> This might also start to pick up some new bugs.
> >>>
> >>> Wayne
> >>>
> >>> On Tue, 4 Nov 2008, Johnny Croy wrote:
> >>>
> >>>> Hello all.
> >>>>
> >>>> Just saved my project in Analysis 2.0.5. I had some spectra that
> >>>> couldn't be found (this wasn't a problem in 1.0) and now when I try
> >>>> and open my project I get the following error:
> >>>>
> >>>> Project invalid, please quit, fix and re-start: ValueError: empty
> >>>> string for float()
> >>>>
> >>>> Here is the traceback
> >>>>
> >>>>>>> Warning: spectrum (T1_b_0, nmrPipe): data file None not
> >>>>>>> accessible
> >>>> ValueError: empty string for float()
> >>>> File "/Applications/ccpnmr/ccpnmr2.0/python/memops/editor/
> >>>> OpenProjectPopup.py", line 204, in apply
> >>>> self.callback(self.project)
> >>>> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/
> >>>> AnalysisPopup.py", line 997, in initProject
> >>>> Analysis.initProject(self, project)
> >>>> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/
> >>>> Analysis.py", line 264, in initProject
> >>>> self.initSpectra()
> >>>> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/
> >>>> Analysis.py", line 900, in initSpectra
> >>>> self.initPeakList(peakList, initialising=True)
> >>>> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/
> >>>> Analysis.py", line 1679, in initPeakList
> >>>> view = WindowBasic.getSpectrumWindowView(window, spectrum)
> >>>> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/core/
> >>>> WindowBasic.py", line 384, in getSpectrumWindowView
> >>>> analysisSpectrum = Util.getAnalysisSpectrum(spectrum)
> >>>> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/core/
> >>>> Util.py", line 161, in getAnalysisSpectrum
> >>>> setupAnalysisSpectrum(analysisSpectrum)
> >>>> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/core/
> >>>> Util.py", line 174, in setupAnalysisSpectrum
> >>>> levels = getSpectrumContourLevels(spectrum)
> >>>> File "/Applications/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/core/
> >>>> Util.py", line 739, in getSpectrumContourLevels
> >>>> levels = [float(level) for level in
> >>>> levels.split(spectrum_contour_separator)]
> >>>>
> >>>> Any ideas on how to fix this.
> >>>>
> >>>> Johnny
> >>>> ------------------------------------------------------------
> >>>> Johnny Eugene Croy, Ph.D.
> >>>> Research Associate
> >>>> Wuttke Lab
> >>>>
> >>>> University of Colorado, Boulder
> >>>> Department of Chemistry and Biochemistry
> >>>> UCB 215
> >>>> Boulder, CO 80309-0215
> >>>>
> >>>> Lab: (303) 492-2369
> >>>> Mobile: (303) 304-6069
> >>>> ------------------------------------------------------------
> >>>>
> >>
> >> ------------------------------------------------------------
> >> Johnny Eugene Croy, Ph.D.
> >> Research Associate
> >> Wuttke Lab
> >>
> >> University of Colorado, Boulder
> >> Department of Chemistry and Biochemistry
> >> UCB 215
> >> Boulder, CO 80309-0215
> >>
> >> Lab: (303) 492-2369
> >> Mobile: (303) 304-6069
> >> ------------------------------------------------------------
> >>
>
> ------------------------------------------------------------
> Johnny Eugene Croy, Ph.D.
> Research Associate
> Wuttke Lab
>
> University of Colorado, Boulder
> Department of Chemistry and Biochemistry
> UCB 215
> Boulder, CO 80309-0215
>
> Lab: (303) 492-2369
> Mobile: (303) 304-6069
> ------------------------------------------------------------
>
|