Add CASA custom toolbar ##. More...
Public Member Functions | |
def | __init__ |
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 | |
xold | |
xdataold | |
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 | _single_mask |
Purely plotter based statistics calculation of a selected area. | |
def | _xspan_draw |
def | _draw_span |
def | _remove_span |
def | _xspan_end |
def | _subplot_stats |
def | _create_flag_from_array |
def | _print_stats |
def | _new_page |
actual plotting of the new page | |
def | _set_prevpage_counter |
calculate the panel ID and start row to plot the previous page | |
def | _get_pagenum |
def | _pause_buttons |
Private Attributes | |
_thisregion |
Add CASA custom toolbar ##.
Definition at line 13 of file customgui_base.py.
def asap.customgui_base.CustomToolbarCommon.__init__ | ( | self, | |
parent | |||
) |
Reimplemented in asap.customgui_tkagg.CustomToolbarTkAgg, and asap.customgui_qt4agg.CustomToolbarQT4Agg.
Definition at line 14 of file customgui_base.py.
def asap.customgui_base.CustomToolbarCommon._create_flag_from_array | ( | self, | |
x, | |||
masklist, | |||
invert | |||
) | [private] |
Definition at line 263 of file customgui_base.py.
References asap.utils._n_bools(), asap.utils.mask_not(), and irc_cs_task_regression.max.
Referenced by asap.customgui_base.CustomToolbarCommon._subplot_stats().
def asap.customgui_base.CustomToolbarCommon._draw_span | ( | self, | |
axes, | |||
x0, | |||
x1, | |||
kwargs | |||
) | [private] |
Reimplemented in asap.customgui_qt4agg.CustomToolbarQT4Agg, and asap.customgui_tkagg.CustomToolbarTkAgg.
Definition at line 182 of file customgui_base.py.
def asap.customgui_base.CustomToolbarCommon._get_pagenum | ( | self | ) | [private] |
Definition at line 404 of file customgui_base.py.
Referenced by asap.customgui_base.CustomToolbarCommon._new_page(), and asap.customgui_base.CustomFlagToolbarCommon._plot_page().
def asap.customgui_base.CustomToolbarCommon._mod_note | ( | self, | |
event | |||
) | [private] |
Notation.
Definition at line 117 of file customgui_base.py.
References asap.customgui_base.CustomToolbarCommon._note_picked().
Referenced by asap.customgui_tkagg.CustomToolbarTkAgg.modify_note(), asap.customgui_qt4agg.CustomToolbarQT4Agg.modify_note(), asap.customgui_tkagg.CustomFlagToolbarTkAgg.modify_note(), and asap.customgui_qt4agg.CustomFlagToolbarQT4Agg.modify_note().
def asap.customgui_base.CustomToolbarCommon._new_page | ( | self, | |
goback = False |
|||
) | [private] |
actual plotting of the new page
Definition at line 322 of file customgui_base.py.
References asap.customgui_base.CustomToolbarCommon._get_pagenum(), asap.customgui_base.CustomToolbarCommon._set_prevpage_counter(), and asap.customgui_base.CustomToolbarCommon.set_pagecounter().
Referenced by asap.customgui_base.CustomToolbarCommon.next_page(), and asap.customgui_base.CustomToolbarCommon.prev_page().
def asap.customgui_base.CustomToolbarCommon._note_picked | ( | self, | |
event | |||
) | [private] |
Definition at line 127 of file customgui_base.py.
Referenced by asap.customgui_base.CustomToolbarCommon._mod_note(), and asap.customgui_base.CustomFlagToolbarCommon._mod_note().
def asap.customgui_base.CustomToolbarCommon._pause_buttons | ( | self, | |
operation = "end" , |
|||
msg = "" |
|||
) | [private] |
Reimplemented in asap.customgui_qt4agg.CustomToolbarQT4Agg, and asap.customgui_tkagg.CustomToolbarTkAgg.
Definition at line 415 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.CustomToolbarCommon._print_stats | ( | self, | |
stats, | |||
statstr = None , |
|||
label = "" , |
|||
mask = None , |
|||
unmask = False |
|||
) | [private] |
Definition at line 282 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._selected_stats(), and asap.customgui_base.CustomToolbarCommon._subplot_stats().
def asap.customgui_base.CustomToolbarCommon._remove_span | ( | self, | |
span | |||
) | [private] |
Reimplemented in asap.customgui_qt4agg.CustomToolbarQT4Agg, and asap.customgui_tkagg.CustomToolbarTkAgg.
Definition at line 185 of file customgui_base.py.
Referenced by asap.customgui_base.CustomToolbarCommon._xspan_draw(), asap.customgui_base.CustomFlagToolbarCommon._xspan_draw(), asap.customgui_base.CustomToolbarCommon._xspan_end(), and asap.customgui_base.CustomFlagToolbarCommon._xspan_end().
def asap.customgui_base.CustomToolbarCommon._select_spectrum | ( | self, | |
event | |||
) | [private] |
select the nearest spectrum in pick radius and display spectral value on the toolbar.
Definition at line 20 of file customgui_base.py.
Referenced by asap.customgui_tkagg.CustomToolbarTkAgg.spec_show(), asap.customgui_qt4agg.CustomToolbarQT4Agg.spec_show(), asap.customgui_tkagg.CustomFlagToolbarTkAgg.spec_show(), and asap.customgui_qt4agg.CustomFlagToolbarQT4Agg.spec_show().
def asap.customgui_base.CustomToolbarCommon._set_prevpage_counter | ( | self | ) | [private] |
calculate the panel ID and start row to plot the previous page
Definition at line 367 of file customgui_base.py.
References irc_cs_task_regression.max.
Referenced by asap.customgui_base.CustomToolbarCommon._new_page().
def asap.customgui_base.CustomToolbarCommon._single_mask | ( | self, | |
event | |||
) | [private] |
Purely plotter based statistics calculation of a selected area.
No access to scantable
Definition at line 142 of file customgui_base.py.
Referenced by asap.customgui_base.CustomToolbarCommon._xspan_end(), asap.customgui_tkagg.CustomToolbarTkAgg.stat_cal(), and asap.customgui_qt4agg.CustomToolbarQT4Agg.stat_cal().
def asap.customgui_base.CustomToolbarCommon._subplot_stats | ( | self, | |
selection | |||
) | [private] |
Definition at line 219 of file customgui_base.py.
References asap.customgui_base.CustomToolbarCommon._create_flag_from_array(), asap.customgui_base.CustomToolbarCommon._print_stats(), and asap.utils.mask_or().
Referenced by asap.customgui_base.CustomToolbarCommon._xspan_end().
def asap.customgui_base.CustomToolbarCommon._xspan_draw | ( | self, | |
event | |||
) | [private] |
Definition at line 166 of file customgui_base.py.
References asap.customgui_base.CustomToolbarCommon._remove_span(), asap.customgui_base.CustomToolbarCommon._thisregion, asap.customgui_base.CustomToolbarCommon.lastspan, asap.customgui_base.CustomToolbarCommon.xdataold, and asap.customgui_base.CustomToolbarCommon.xold.
def asap.customgui_base.CustomToolbarCommon._xspan_end | ( | self, | |
event | |||
) | [private] |
Definition at line 189 of file customgui_base.py.
References asap.customgui_base.CustomToolbarCommon._remove_span(), asap.customgui_base.CustomToolbarCommon._single_mask(), asap.customgui_base.CustomToolbarCommon._subplot_stats(), asap.customgui_base.CustomToolbarCommon._thisregion, asap.customgui_base.CustomToolbarCommon.lastspan, asap.customgui_base.CustomToolbarCommon.xdataold, and asap.customgui_base.CustomToolbarCommon.xold.
go to the next page
Definition at line 315 of file customgui_base.py.
References asap.customgui_base.CustomToolbarCommon._new_page().
Page chages go to the previous page.
Definition at line 308 of file customgui_base.py.
References asap.customgui_base.CustomToolbarCommon._new_page().
def asap.customgui_base.CustomToolbarCommon.set_pagecounter | ( | self, | |
page | |||
) |
refresh the page counter
Definition at line 394 of file customgui_base.py.
References irc_cs_task_regression.max, and asap.customgui_base.CustomToolbarCommon.show_pagenum().
Referenced by asap.customgui_base.CustomToolbarCommon._new_page(), and asap.customgui_base.CustomFlagToolbarCommon._plot_page().
def asap.customgui_base.CustomToolbarCommon.show_pagenum | ( | self, | |
pagenum, | |||
formatstr | |||
) |
Reimplemented in asap.customgui_qt4agg.CustomToolbarQT4Agg, and asap.customgui_tkagg.CustomToolbarTkAgg.
Definition at line 400 of file customgui_base.py.
Referenced by asap.customgui_base.CustomToolbarCommon.set_pagecounter(), and asap.customgui_base.CustomFlagToolbarCommon.set_pagecounter().
Definition at line 156 of file customgui_base.py.
Referenced by asap.customgui_base.CustomFlagToolbarCommon._add_region(), asap.customgui_base.CustomToolbarCommon._xspan_draw(), asap.customgui_base.CustomFlagToolbarCommon._xspan_draw(), asap.customgui_base.CustomToolbarCommon._xspan_end(), and asap.customgui_base.CustomFlagToolbarCommon._xspan_end().
Definition at line 15 of file customgui_base.py.
Definition at line 160 of file customgui_base.py.
Referenced by asap.interactivemask.interactivemask._region_draw(), asap.interactivemask.interactivemask._region_end(), asap.customgui_base.CustomToolbarCommon._xspan_draw(), asap.customgui_base.CustomFlagToolbarCommon._xspan_draw(), asap.customgui_base.CustomToolbarCommon._xspan_end(), and asap.customgui_base.CustomFlagToolbarCommon._xspan_end().
Definition at line 159 of file customgui_base.py.
Referenced by asap.interactivemask.interactivemask._region_draw(), asap.interactivemask.interactivemask._region_end(), asap.customgui_base.CustomToolbarCommon._xspan_draw(), asap.customgui_base.CustomFlagToolbarCommon._xspan_draw(), asap.customgui_base.CustomToolbarCommon._xspan_end(), and asap.customgui_base.CustomFlagToolbarCommon._xspan_end().