Add CASA custom Flag toolbar ##. More...
Public Member Functions | |
def | __init__ |
def | cancel_select |
clear up selections | |
def | flag |
flag selected spectra/regions | |
def | unflag |
unflag selected spectra/regions | |
def | stat_cal |
show statistics of selected spectra/regions | |
def | prev_page |
Page chages go to the previous page. | |
def | next_page |
go to the next page | |
def | set_pagecounter |
refresh the page counter | |
def | show_pagenum |
Public Attributes | |
plotter | |
xdataold | |
xold | |
lastspan | |
Private Member Functions | |
def | _select_spectrum |
select the nearest spectrum in pick radius and display spectral value on the toolbar. | |
def | _mod_note |
Notation. | |
def | _note_picked |
def | _add_region |
Region/Panel selection & oparations add regions to selections. | |
def | _xspan_draw |
def | _draw_span |
def | _remove_span |
def | _xspan_end |
def | _add_panel |
add panels to selections | |
def | _getrownum |
def | _any_selection |
def | _plot_selections |
def | _clear_selection_plot |
def | _clearup_selections |
def | _flag_operation |
actual flag operation | |
def | _selected_stats |
def | _print_stats |
def | _plot_page |
actual plotting of the new page | |
def | _set_plot_counter |
calculate the panel ID and start row to plot a page def _set_prevpage_counter(self): | |
def | _get_pagenum |
def | _pause_buttons |
Private Attributes | |
_selregions | |
_selpanels | |
_polygons | |
clear up polygons which mark selected spectra and regions ### | |
_thisregion |
Add CASA custom Flag toolbar ##.
Definition at line 684 of file customgui_base.py.
def asap.customgui_base.CustomFlagToolbarCommon.__init__ | ( | self, | |
parent | |||
) |
Reimplemented in asap.customgui_qt4agg.CustomFlagToolbarQT4Agg, and asap.customgui_tkagg.CustomFlagToolbarTkAgg.
Definition at line 685 of file customgui_base.py.
def asap.customgui_base.CustomFlagToolbarCommon._add_panel | ( | self, | |
event | |||
) | [private] |
add panels to selections
Definition at line 909 of file customgui_base.py.
References asap.customgui_base.CustomFlagToolbarCommon._getrownum().
Referenced by asap.customgui_tkagg.CustomFlagToolbarTkAgg.select_panel(), and asap.customgui_qt4agg.CustomFlagToolbarQT4Agg.select_panel().
def asap.customgui_base.CustomFlagToolbarCommon._add_region | ( | self, | |
event | |||
) | [private] |
Region/Panel selection & oparations add regions to selections.
Definition at line 817 of file customgui_base.py.
References asap.customgui_base.CustomFlagToolbarCommon._getrownum(), asap.customgui_base.CustomFlagToolbarCommon._selpanels, asap.customgui_base.CustomToolbarCommon._thisregion, and asap.customgui_base.CustomFlagToolbarCommon._thisregion.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._xspan_end(), asap.customgui_tkagg.CustomFlagToolbarTkAgg.select_region(), and asap.customgui_qt4agg.CustomFlagToolbarQT4Agg.select_region().
def asap.customgui_base.CustomFlagToolbarCommon._any_selection | ( | self | ) | [private] |
Definition at line 939 of file customgui_base.py.
References asap.customgui_base.CustomFlagToolbarCommon._selpanels, and asap.customgui_base.CustomFlagToolbarCommon._selregions.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._plot_selections(), asap.customgui_base.CustomFlagToolbarCommon.flag(), asap.customgui_base.CustomFlagToolbarCommon.stat_cal(), and asap.customgui_base.CustomFlagToolbarCommon.unflag().
def asap.customgui_base.CustomFlagToolbarCommon._clear_selection_plot | ( | self, | |
refresh = True |
|||
) | [private] |
Definition at line 981 of file customgui_base.py.
References asap.customgui_base.CustomFlagToolbarCommon._polygons.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._clearup_selections(), asap.customgui_base.CustomFlagToolbarCommon.next_page(), and asap.customgui_base.CustomFlagToolbarCommon.prev_page().
def asap.customgui_base.CustomFlagToolbarCommon._clearup_selections | ( | self, | |
refresh = True |
|||
) | [private] |
Definition at line 989 of file customgui_base.py.
References asap.customgui_base.CustomFlagToolbarCommon._clear_selection_plot(), asap.customgui_base.CustomFlagToolbarCommon._selpanels, and asap.customgui_base.CustomFlagToolbarCommon._selregions.
Referenced by asap.customgui_base.CustomFlagToolbarCommon.cancel_select(), asap.customgui_base.CustomFlagToolbarCommon.flag(), asap.customgui_base.CustomFlagToolbarCommon.stat_cal(), and asap.customgui_base.CustomFlagToolbarCommon.unflag().
def asap.customgui_base.CustomFlagToolbarCommon._draw_span | ( | self, | |
axes, | |||
x0, | |||
x1, | |||
kwargs | |||
) | [private] |
Reimplemented in asap.customgui_qt4agg.CustomFlagToolbarQT4Agg, and asap.customgui_tkagg.CustomFlagToolbarTkAgg.
Definition at line 854 of file customgui_base.py.
def asap.customgui_base.CustomFlagToolbarCommon._flag_operation | ( | self, | |
rows = None , |
|||
regions = None , |
|||
unflag = False |
|||
) | [private] |
actual flag operation
Definition at line 1046 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon.flag(), and asap.customgui_base.CustomFlagToolbarCommon.unflag().
def asap.customgui_base.CustomFlagToolbarCommon._get_pagenum | ( | self | ) | [private] |
Definition at line 1240 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._plot_page().
def asap.customgui_base.CustomFlagToolbarCommon._getrownum | ( | self, | |
axis | |||
) | [private] |
Definition at line 932 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._add_panel(), asap.customgui_base.CustomFlagToolbarCommon._add_region(), asap.customgui_base.CustomFlagToolbarCommon._plot_selections(), and asap.customgui_base.CustomFlagToolbarCommon._xspan_end().
def asap.customgui_base.CustomFlagToolbarCommon._mod_note | ( | self, | |
event | |||
) | [private] |
Notation.
Definition at line 793 of file customgui_base.py.
References asap.customgui_base.CustomToolbarCommon._note_picked(), and asap.customgui_base.CustomFlagToolbarCommon._note_picked().
Referenced by asap.customgui_tkagg.CustomFlagToolbarTkAgg.modify_note(), and asap.customgui_qt4agg.CustomFlagToolbarQT4Agg.modify_note().
def asap.customgui_base.CustomFlagToolbarCommon._note_picked | ( | self, | |
event | |||
) | [private] |
Definition at line 803 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._mod_note().
def asap.customgui_base.CustomFlagToolbarCommon._pause_buttons | ( | self, | |
operation = "end" , |
|||
msg = "" |
|||
) | [private] |
Reimplemented in asap.customgui_qt4agg.CustomFlagToolbarQT4Agg, and asap.customgui_tkagg.CustomFlagToolbarTkAgg.
Definition at line 1251 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon.flag(), asap.customgui_base.CustomFlagToolbarCommon.next_page(), asap.customgui_base.CustomFlagToolbarCommon.prev_page(), and asap.customgui_base.CustomFlagToolbarCommon.unflag().
def asap.customgui_base.CustomFlagToolbarCommon._plot_page | ( | self, | |
pagemode = "next" |
|||
) | [private] |
actual plotting of the new page
Definition at line 1166 of file customgui_base.py.
References asap.customgui_base.CustomToolbarCommon._get_pagenum(), asap.customgui_base.CustomFlagToolbarCommon._get_pagenum(), asap.customgui_base.CustomFlagToolbarCommon._set_plot_counter(), asap.customgui_base.CustomToolbarCommon.set_pagecounter(), and asap.customgui_base.CustomFlagToolbarCommon.set_pagecounter().
Referenced by asap.customgui_base.CustomFlagToolbarCommon.flag(), asap.customgui_base.CustomFlagToolbarCommon.next_page(), asap.customgui_base.CustomFlagToolbarCommon.prev_page(), and asap.customgui_base.CustomFlagToolbarCommon.unflag().
def asap.customgui_base.CustomFlagToolbarCommon._plot_selections | ( | self, | |
regions = None , |
|||
panels = None |
|||
) | [private] |
Definition at line 945 of file customgui_base.py.
References asap.customgui_base.CustomFlagToolbarCommon._any_selection(), asap.customgui_base.CustomFlagToolbarCommon._getrownum(), and asap.customgui_base.CustomFlagToolbarCommon._selpanels.
Referenced by asap.customgui_base.CustomFlagToolbarCommon.next_page(), and asap.customgui_base.CustomFlagToolbarCommon.prev_page().
def asap.customgui_base.CustomFlagToolbarCommon._print_stats | ( | self, | |
scan, | |||
row, | |||
stats, | |||
statstr = None , |
|||
mask = None |
|||
) | [private] |
Definition at line 1115 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._selected_stats().
def asap.customgui_base.CustomFlagToolbarCommon._remove_span | ( | self, | |
span | |||
) | [private] |
Reimplemented in asap.customgui_qt4agg.CustomFlagToolbarQT4Agg, and asap.customgui_tkagg.CustomFlagToolbarTkAgg.
Definition at line 857 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._xspan_draw(), and asap.customgui_base.CustomFlagToolbarCommon._xspan_end().
def asap.customgui_base.CustomFlagToolbarCommon._select_spectrum | ( | self, | |
event | |||
) | [private] |
select the nearest spectrum in pick radius and display spectral value on the toolbar.
Definition at line 696 of file customgui_base.py.
Referenced by asap.customgui_tkagg.CustomFlagToolbarTkAgg.spec_show(), and asap.customgui_qt4agg.CustomFlagToolbarQT4Agg.spec_show().
def asap.customgui_base.CustomFlagToolbarCommon._selected_stats | ( | self, | |
rows = None , |
|||
regions = None |
|||
) | [private] |
Definition at line 1081 of file customgui_base.py.
References asap.customgui_base.CustomToolbarCommon._print_stats(), and asap.customgui_base.CustomFlagToolbarCommon._print_stats().
Referenced by asap.customgui_base.CustomFlagToolbarCommon.stat_cal().
def asap.customgui_base.CustomFlagToolbarCommon._set_plot_counter | ( | self, | |
pagemode | |||
) | [private] |
calculate the panel ID and start row to plot a page def _set_prevpage_counter(self):
Definition at line 1186 of file customgui_base.py.
References irc_cs_task_regression.max.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._plot_page().
def asap.customgui_base.CustomFlagToolbarCommon._xspan_draw | ( | self, | |
event | |||
) | [private] |
Definition at line 838 of file customgui_base.py.
References asap.customgui_base.CustomToolbarCommon._remove_span(), asap.customgui_base.CustomFlagToolbarCommon._remove_span(), asap.customgui_base.CustomToolbarCommon._thisregion, asap.customgui_base.CustomFlagToolbarCommon._thisregion, asap.customgui_base.CustomToolbarCommon.lastspan, asap.customgui_base.CustomFlagToolbarCommon.lastspan, asap.customgui_base.CustomToolbarCommon.xdataold, asap.customgui_base.CustomFlagToolbarCommon.xdataold, asap.customgui_base.CustomToolbarCommon.xold, and asap.customgui_base.CustomFlagToolbarCommon.xold.
def asap.customgui_base.CustomFlagToolbarCommon._xspan_end | ( | self, | |
event | |||
) | [private] |
Definition at line 861 of file customgui_base.py.
References asap.customgui_base.CustomFlagToolbarCommon._add_region(), asap.customgui_base.CustomFlagToolbarCommon._getrownum(), asap.customgui_base.CustomToolbarCommon._remove_span(), asap.customgui_base.CustomFlagToolbarCommon._remove_span(), asap.customgui_base.CustomFlagToolbarCommon._selregions, asap.customgui_base.CustomToolbarCommon._thisregion, asap.customgui_base.CustomFlagToolbarCommon._thisregion, nf_regression.append, asap.customgui_base.CustomToolbarCommon.lastspan, asap.customgui_base.CustomFlagToolbarCommon.lastspan, asap.customgui_base.CustomToolbarCommon.xdataold, asap.customgui_base.CustomFlagToolbarCommon.xdataold, asap.customgui_base.CustomToolbarCommon.xold, and asap.customgui_base.CustomFlagToolbarCommon.xold.
clear up selections
Definition at line 996 of file customgui_base.py.
References asap.customgui_base.CustomFlagToolbarCommon._clearup_selections().
def asap.customgui_base.CustomFlagToolbarCommon.flag | ( | self | ) |
flag selected spectra/regions
Definition at line 1003 of file customgui_base.py.
References asap.customgui_base.CustomFlagToolbarCommon._any_selection(), asap.customgui_base.CustomFlagToolbarCommon._clearup_selections(), asap.customgui_base.CustomFlagToolbarCommon._flag_operation(), asap.customgui_base.CustomToolbarCommon._pause_buttons(), asap.customgui_base.CustomFlagToolbarCommon._pause_buttons(), asap.customgui_base.CustomFlagToolbarCommon._plot_page(), asap.customgui_base.CustomFlagToolbarCommon._selpanels, and asap.customgui_base.CustomFlagToolbarCommon._selregions.
Referenced by TablePlotTkAgg.PlotFlag.configure_buttons(), and asap.scantable.scantable.flag_nans().
go to the next page
Definition at line 1158 of file customgui_base.py.
References asap.customgui_base.CustomFlagToolbarCommon._clear_selection_plot(), asap.customgui_base.CustomToolbarCommon._pause_buttons(), asap.customgui_base.CustomFlagToolbarCommon._pause_buttons(), asap.customgui_base.CustomFlagToolbarCommon._plot_page(), and asap.customgui_base.CustomFlagToolbarCommon._plot_selections().
Page chages go to the previous page.
Definition at line 1150 of file customgui_base.py.
References asap.customgui_base.CustomFlagToolbarCommon._clear_selection_plot(), asap.customgui_base.CustomToolbarCommon._pause_buttons(), asap.customgui_base.CustomFlagToolbarCommon._pause_buttons(), asap.customgui_base.CustomFlagToolbarCommon._plot_page(), and asap.customgui_base.CustomFlagToolbarCommon._plot_selections().
def asap.customgui_base.CustomFlagToolbarCommon.set_pagecounter | ( | self, | |
page | |||
) |
refresh the page counter
Definition at line 1230 of file customgui_base.py.
References irc_cs_task_regression.max, asap.customgui_base.CustomToolbarCommon.show_pagenum(), and asap.customgui_base.CustomFlagToolbarCommon.show_pagenum().
Referenced by asap.customgui_base.CustomFlagToolbarCommon._plot_page().
def asap.customgui_base.CustomFlagToolbarCommon.show_pagenum | ( | self, | |
pagenum, | |||
formatstr | |||
) |
Reimplemented in asap.customgui_qt4agg.CustomFlagToolbarQT4Agg, and asap.customgui_tkagg.CustomFlagToolbarTkAgg.
Definition at line 1236 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon.set_pagecounter().
show statistics of selected spectra/regions
Definition at line 1071 of file customgui_base.py.
References asap.customgui_base.CustomFlagToolbarCommon._any_selection(), asap.customgui_base.CustomFlagToolbarCommon._clearup_selections(), asap.customgui_base.CustomFlagToolbarCommon._selected_stats(), asap.customgui_base.CustomFlagToolbarCommon._selpanels, and asap.customgui_base.CustomFlagToolbarCommon._selregions.
unflag selected spectra/regions
Definition at line 1025 of file customgui_base.py.
References asap.customgui_base.CustomFlagToolbarCommon._any_selection(), asap.customgui_base.CustomFlagToolbarCommon._clearup_selections(), asap.customgui_base.CustomFlagToolbarCommon._flag_operation(), asap.customgui_base.CustomToolbarCommon._pause_buttons(), asap.customgui_base.CustomFlagToolbarCommon._pause_buttons(), asap.customgui_base.CustomFlagToolbarCommon._plot_page(), asap.customgui_base.CustomFlagToolbarCommon._selpanels, and asap.customgui_base.CustomFlagToolbarCommon._selregions.
Referenced by TablePlotTkAgg.PlotFlag.configure_buttons().
clear up polygons which mark selected spectra and regions ###
Definition at line 690 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._clear_selection_plot(), asap.interactivemask.interactivemask._plot_mask(), asap.interactivemask.interactivemask.clear_polygon(), and asap.interactivemask.interactivemask.finish_selection().
Definition at line 689 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._add_region(), asap.customgui_base.CustomFlagToolbarCommon._any_selection(), asap.customgui_base.CustomFlagToolbarCommon._clearup_selections(), asap.customgui_base.CustomFlagToolbarCommon._plot_selections(), asap.customgui_base.CustomFlagToolbarCommon.flag(), asap.customgui_base.CustomFlagToolbarCommon.stat_cal(), and asap.customgui_base.CustomFlagToolbarCommon.unflag().
Definition at line 688 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._any_selection(), asap.customgui_base.CustomFlagToolbarCommon._clearup_selections(), asap.customgui_base.CustomFlagToolbarCommon._xspan_end(), asap.customgui_base.CustomFlagToolbarCommon.flag(), asap.customgui_base.CustomFlagToolbarCommon.stat_cal(), and asap.customgui_base.CustomFlagToolbarCommon.unflag().
Definition at line 691 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._add_region(), asap.customgui_base.CustomFlagToolbarCommon._xspan_draw(), and asap.customgui_base.CustomFlagToolbarCommon._xspan_end().
Definition at line 851 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._xspan_draw(), and asap.customgui_base.CustomFlagToolbarCommon._xspan_end().
Definition at line 686 of file customgui_base.py.