Changeset 998


Ignore:
Timestamp:
04/06/06 16:12:07 (19 years ago)
Author:
mar637
Message:

fixed bug, where too many spectra where plotted when the plotter was selcting maxpanel and minpanel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapplotter.py

    r964 r998  
    373373        polmodes = dict(zip(self._selection.get_pols(),self._selection.get_poltypes()))
    374374        n,nstack = self._get_selected_n(scan)
    375         maxpanel, maxstack = 9,4
     375        maxpanel, maxstack = 16,8
    376376        if n > maxpanel or nstack > maxstack:
    377377            from asap import asaplog
     
    381381            print_log()
    382382            n = min(n,maxpanel)
    383             nstack = min(n,maxstack)
     383            nstack = min(nstack,maxstack)
    384384
    385385        if n > 1:
     
    399399        newpanel=True
    400400        panelcount,stackcount = 0,0
    401         while r < nr:
     401        while r < n*nstack:
    402402            a = d[self._panelling](r)
    403403            b = d[self._stacking](r)
    404 #             print r
    405 #             print "  a: ",a,a0,panelcount,n
    406 #             print "  b: ",b,b0,stackcount,nstack
    407404            if a > a0 and panelcount < n:
    408405                if n > 1:
     
    475472            # ignore following rows
    476473            if (panelcount == n) and (stackcount == nstack):
    477                 pass#break
     474                break
    478475            r+=1 # next row
    479476        #reset the selector to the scantable's original
Note: See TracChangeset for help on using the changeset viewer.