Changeset 1164


Ignore:
Timestamp:
08/22/06 11:31:51 (18 years ago)
Author:
mar637
Message:

fix in plot_lines. have to ignore line when channel is masked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapplotter.py

    r1158 r1164  
    462462                            y = line._y_orig[s]
    463463                            maxys.append(ma.maximum(y))
    464                     peak = max(maxys)
     464                    if len(maxys):
     465                        peak = max(maxys)
     466                    else:
     467                        print "DEBUG - ignoring line as spectrum was masked at this frequency"
     468                        continue
    465469                    self._plotter.vline_with_label(freq, peak,
    466470                                                   linecat.get_name(row),
Note: See TracChangeset for help on using the changeset viewer.