Ah, just looking at the code I can see that condition explicitly now, that
is that the number of "views" is one. But it uses the "active" views to
determine this count. The code for that says:
def getActiveSpectrumViews(self):
return [ view for view in self.getSpectrumViews() if view.isPosVisible ]
so I don't understand why disabling spectra in your toolbar (which should
set view.isPosVisible to False) does not work.
Anyway, this just points to the fact that this all should be done in a
better way.
Wayne
On Thu, 30 Nov 2006, Patrick van der Wel wrote:
> A follow-up on a previous issue:
> >>
> >> I just tried creating a new window and the Reference... was still ok (and
> >> also if I just used a cloned new window). So puzzling.
> >>
> >>
> > Ok. I will keep using it and see if I can establish some pattern(s)
> > regarding this behavior (e.g. if it is perhaps correlated to me using
> > 13C-13C ssNMR data (no 1H dim.) or something)
> >
> Well, I think I figured it out: the Reference... option only appears
> when one spectrum is being displayed. This makes sense, I suppose, to
> ensure you reference the right one. However, what caused my trouble was
> that I had disabled various spectra in the window's toolbar, but had
> failed to explicitly remove them from the slices as well. And it seems
> that the Reference feature checks the number of spectra listed in the
> slice rather than in the 'main window'. (After I used the 'Window/Mapped
> Spectra' commands to remove the extra spectra from the slices it seems
> to work)
>
> Patrick
>
|